Sha256: b12d2a2aa6dec4674e26ca023cca3bef3a742323c6eb8e79df59ed3779fd8f81

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

require 'netbox_client_ruby/entities'
require 'netbox_client_ruby/api/ipam/vrf'

module NetboxClientRuby
  class Vrfs
    include NetboxClientRuby::Entities

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

    private

    def entity_creator(raw_entity)
      NetboxClientRuby::Vrf.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/ipam/vrfs.rb
netbox-client-ruby-0.0.3 lib/netbox_client_ruby/api/ipam/vrfs.rb
netbox-client-ruby-0.0.2 lib/netbox_client_ruby/api/ipam/vrfs.rb
netbox-client-ruby-0.0.1 lib/netbox_client_ruby/api/ipam/vrfs.rb