ninech/netbox-client-ruby

View on GitHub
lib/netbox_client_ruby/api/ipam/aggregate.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module IPAM
    class Aggregate
      include Entity

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