ninech/netbox-client-ruby

View on GitHub
lib/netbox_client_ruby/api/ipam/vrf.rb

Summary

Maintainability
A
15 mins
Test Coverage
# frozen_string_literal: true

module NetboxClientRuby
  module IPAM
    class Vrf
      include Entity

      id id: :id
      deletable true
      path 'ipam/vrfs/:id.json'
      creation_path 'ipam/vrfs/'
      object_fields tenant: proc { |raw_data| Tenancy::Tenant.new raw_data['id'] }
    end
  end
end