stefan-kolb/nucleus

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

Summary

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

        item_collection('providers', 'providers', Models::Provider)
        basic_links('vendors/%{vendor_id}', 'providers')
      end
    end
  end
end