Sha256: 98492f71da8517174ee5c30f69c2c60abd5537c8ff434ee68ccf29ef61ae2410

Contents?: true

Size: 515 Bytes

Versions: 30

Compression:

Stored size: 515 Bytes

Contents

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/region'
require 'netbox_client_ruby/api/tenancy/tenant'

module NetboxClientRuby
  module DCIM
    class RackGroup
      include Entity

      id id: :id
      deletable true
      path 'dcim/rack-groups/:id.json'
      creation_path 'dcim/rack-groups/'
      object_fields(
        region: proc { |raw_data| DCIM::Region.new raw_data['id'] },
        tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] },
      )
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
netbox-client-ruby-0.10.1 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.10.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.9.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.8.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.7.1 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.7.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.6.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.7 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.6 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.5 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.4 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.3 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.2 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.1 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.5.0 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.4.10 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.4.9 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.4.7 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.4.6 lib/netbox_client_ruby/api/dcim/rack_group.rb
netbox-client-ruby-0.4.3 lib/netbox_client_ruby/api/dcim/rack_group.rb