stefan-kolb/nucleus

View on GitHub
lib/nucleus_api/api/entities/collections/service_plans.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Nucleus
  module API
    module Models
      class ServicePlans < CollectionEntity
        # The name of the entity to be used
        def self.entity_name
          'ServicePlanList'
        end

        item_collection('plans', 'service plans', Models::ServicePlan)
        basic_links('endpoints/%{endpoint_id}', 'plans')
      end
    end
  end
end