Sha256: 1065c75d8b2a183aef2ccfe650cceabebac9fa7cdbbee02251c9e736fb49ea22

Contents?: true

Size: 432 Bytes

Versions: 24

Compression:

Stored size: 432 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/virtualization/cluster'

module NetboxClientRuby
  module Virtualization
    class Clusters
      include Entities

      path 'virtualization/clusters.json'
      data_key 'results'
      count_key 'count'
      entity_creator :entity_creator

      private

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

Version data entries

24 entries across 24 versions & 1 rubygems

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