Class: NetboxClientRuby::DCIM::InterfaceOrdering

Inherits:
Object
  • Object
show all
Defined in:
lib/netbox_client_ruby/api/dcim/device_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_data) ⇒ InterfaceOrdering

Returns a new instance of InterfaceOrdering.



9
10
11
12
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 9

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

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



7
8
9
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 7

def label
  @label
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 7

def value
  @value
end