Sha256: bd41baa5f96f02c550d758ab1d19456569a4556739bc834ef5a1a07b82c816db

Contents?: true

Size: 407 Bytes

Versions: 33

Compression:

Stored size: 407 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/tenancy/tenant'

module NetboxClientRuby
  module Tenancy
    class Tenants
      include Entities

      path 'tenancy/tenants.json'
      data_key 'results'
      count_key 'count'
      entity_creator :entity_creator

      private

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

Version data entries

33 entries across 33 versions & 1 rubygems

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