lib/nucleus_api/api/entities/collections/providers.rb
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