Sha256: e55924675a710d4e0d562c3ae46affc155898858c0d3634c3bcc28cff865b0a9

Contents?: true

Size: 365 Bytes

Versions: 4

Compression:

Stored size: 365 Bytes

Contents

require 'netbox_client_ruby/entity'
require 'netbox_client_ruby/api/dcim/site'

module NetboxClientRuby
  class VlanGroup
    include NetboxClientRuby::Entity

    id id: :id
    deletable true
    path 'ipam/vlan-groups/:id.json'
    creation_path 'ipam/vlan-groups/'
    object_fields site: proc { |raw_data| NetboxClientRuby::Site.new raw_data['id'] }
  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/vlan_group.rb
netbox-client-ruby-0.0.3 lib/netbox_client_ruby/api/ipam/vlan_group.rb
netbox-client-ruby-0.0.2 lib/netbox_client_ruby/api/ipam/vlan_group.rb
netbox-client-ruby-0.0.1 lib/netbox_client_ruby/api/ipam/vlan_group.rb