stefan-kolb/nucleus

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

Summary

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

        item_collection('regions', 'regions', Models::Region)
        basic_links('endpoints/%{endpoint_id}', 'regions')
      end
    end
  end
end