Class: NetboxClientRuby::IPAM::ServiceProtocol

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject (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

#valueObject (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