Sha256: 7bebb7a009f4c6d484ca3d5bafd17d33d54e7d098de5a1ffe46c0a3fb2856d5b

Contents?: true

Size: 420 Bytes

Versions: 4

Compression:

Stored size: 420 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/tenancy/tenant_group'

module NetboxClientRuby
  class TenantGroups
    include NetboxClientRuby::Entities

    path 'tenancy/tenant-groups.json'
    data_key 'results'
    count_key 'count'
    entity_creator :entity_creator

    private

    def entity_creator(raw_entity)
      NetboxClientRuby::TenantGroup.new raw_entity['id']
    end
  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/tenancy/tenant_groups.rb
netbox-client-ruby-0.0.3 lib/netbox_client_ruby/api/tenancy/tenant_groups.rb
netbox-client-ruby-0.0.2 lib/netbox_client_ruby/api/tenancy/tenant_groups.rb
netbox-client-ruby-0.0.1 lib/netbox_client_ruby/api/tenancy/tenant_groups.rb