Class: NetboxClientRuby::DCIM::InterfaceOrdering
- Inherits:
-
Object
- Object
- NetboxClientRuby::DCIM::InterfaceOrdering
- Defined in:
- lib/netbox_client_ruby/api/dcim/device_type.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(raw_data) ⇒ InterfaceOrdering
constructor
A new instance of InterfaceOrdering.
Constructor Details
#initialize(raw_data) ⇒ InterfaceOrdering
Returns a new instance of InterfaceOrdering.
8 9 10 11 |
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 8 def initialize(raw_data) @value = raw_data['value'] @label = raw_data['label'] end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
6 7 8 |
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 6 def label @label end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/netbox_client_ruby/api/dcim/device_type.rb', line 6 def value @value end |