Sha256: c42e9cbb3e788fec91d31a93b7efc78e57772647e4d526e602a5193ee6b86889

Contents?: true

Size: 360 Bytes

Versions: 4

Compression:

Stored size: 360 Bytes

Contents

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/ipam/rir'

module NetboxClientRuby
  class Aggregate
    include NetboxClientRuby::Entity

    id id: :id
    deletable true
    path 'ipam/aggregates/:id.json'
    creation_path 'ipam/aggregates/'
    object_fields rir: proc { |raw_data| NetboxClientRuby::Rir.new raw_data['id'] }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
netbox-client-ruby-0.0.4 lib/netbox_client_ruby/api/ipam/aggregate.rb
netbox-client-ruby-0.0.3 lib/netbox_client_ruby/api/ipam/aggregate.rb
netbox-client-ruby-0.0.2 lib/netbox_client_ruby/api/ipam/aggregate.rb
netbox-client-ruby-0.0.1 lib/netbox_client_ruby/api/ipam/aggregate.rb