Sha256: 64ca4bab92581fc2fa83b5d8e76960dafa5cbb56ade87f81464dcc02a8cf07e2

Contents?: true

Size: 412 Bytes

Versions: 29

Compression:

Stored size: 412 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/dcim/rack_group'

module NetboxClientRuby
  module DCIM
    class RackGroups
      include Entities

      path 'dcim/rack-groups.json'
      data_key 'results'
      count_key 'count'
      entity_creator :entity_creator

      private

      def entity_creator(raw_entity)
        RackGroup.new raw_entity['id']
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

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