stefan-kolb/nucleus

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

Summary

Maintainability
A
0 mins
Test Coverage
module Nucleus
  module API
    module Models
      class Domains < CollectionEntity
        # The name of the entity to be used
        def self.entity_name
          'DomainList'
        end
        item_collection('domains', 'domains', Models::Domain)
        basic_links('endpoints/%{endpoint_id}/applications/%{application_id}', 'domains')
      end
    end
  end
end