Class: NetboxClientRuby::IPAM::VlanStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/netbox_client_ruby/api/ipam/vlan.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ VlanStatus

Returns a new instance of VlanStatus.



25
26
27
28
# File 'lib/netbox_client_ruby/api/ipam/vlan.rb', line 25

def initialize(raw_data)
  @value = raw_data['value']
  @label = raw_data['label']
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



23
24
25
# File 'lib/netbox_client_ruby/api/ipam/vlan.rb', line 23

def label
  @label
end

#valueObject (readonly)

Returns the value of attribute value.



23
24
25
# File 'lib/netbox_client_ruby/api/ipam/vlan.rb', line 23

def value
  @value
end