Class: NetboxClientRuby::IPAM::ServiceProtocol
- Inherits:
-
Object
- Object
- NetboxClientRuby::IPAM::ServiceProtocol
- Defined in:
- lib/netbox_client_ruby/api/ipam/service.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) ⇒ ServiceProtocol
constructor
A new instance of ServiceProtocol.
Constructor Details
#initialize(raw_data) ⇒ ServiceProtocol
Returns a new instance of ServiceProtocol.
24 25 26 27 |
# File 'lib/netbox_client_ruby/api/ipam/service.rb', line 24 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.
22 23 24 |
# File 'lib/netbox_client_ruby/api/ipam/service.rb', line 22 def label @label end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
22 23 24 |
# File 'lib/netbox_client_ruby/api/ipam/service.rb', line 22 def value @value end |