lib/netbox_client_ruby/api/ipam/aggregates.rb in netbox-client-ruby-0.0.4 vs lib/netbox_client_ruby/api/ipam/aggregates.rb in netbox-client-ruby-0.1.0
- old
+ new
@@ -1,19 +1,21 @@
require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/ipam/aggregate'
module NetboxClientRuby
- class Aggregates
- include NetboxClientRuby::Entities
+ module IPAM
+ class Aggregates
+ include Entities
- path 'ipam/aggregates.json'
- data_key 'results'
- count_key 'count'
- entity_creator :entity_creator
+ path 'ipam/aggregates.json'
+ data_key 'results'
+ count_key 'count'
+ entity_creator :entity_creator
- private
+ private
- def entity_creator(raw_entity)
- NetboxClientRuby::Aggregate.new raw_entity['id']
+ def entity_creator(raw_entity)
+ Aggregate.new raw_entity['id']
+ end
end
end
end