Sha256: d248965b049506a2cf45d262851bbfb3e4f43ad102f16198ee7bd75925922186

Contents?: true

Size: 400 Bytes

Versions: 33

Compression:

Stored size: 400 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/ipam/prefix'

module NetboxClientRuby
  module IPAM
    class Prefixes
      include Entities

      path 'ipam/prefixes.json'
      data_key 'results'
      count_key 'count'
      entity_creator :entity_creator

      private

      def entity_creator(raw_entity)
        Prefix.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/ipam/prefixes.rb
netbox-client-ruby-0.9.0 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.8.0 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.7.1 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.7.0 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.6.0 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.7 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.6 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.5 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.4 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.3 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.2 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.1 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.5.0 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.10 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.9 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.7 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.6 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.3 lib/netbox_client_ruby/api/ipam/prefixes.rb
netbox-client-ruby-0.4.2 lib/netbox_client_ruby/api/ipam/prefixes.rb