Class: NetboxClientRuby::Virtualization::ClusterStatus
- Inherits:
-
Object
- Object
- NetboxClientRuby::Virtualization::ClusterStatus
- Defined in:
- lib/netbox_client_ruby/api/virtualization/virtual_machine.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) ⇒ ClusterStatus
constructor
A new instance of ClusterStatus.
Constructor Details
#initialize(raw_data) ⇒ ClusterStatus
Returns a new instance of ClusterStatus.
27 28 29 30 |
# File 'lib/netbox_client_ruby/api/virtualization/virtual_machine.rb', line 27 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.
25 26 27 |
# File 'lib/netbox_client_ruby/api/virtualization/virtual_machine.rb', line 25 def label @label end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
25 26 27 |
# File 'lib/netbox_client_ruby/api/virtualization/virtual_machine.rb', line 25 def value @value end |