Class: Nomad::Port

Inherits:
Response show all
Defined in:
lib/nomad/api/node.rb

Constant Summary

Constants inherited from Response

Response::BUILTIN_LOADERS

Instance Attribute Summary collapse

Method Summary

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Nomad::Response

Instance Attribute Details

#labelString (readonly)

The port label.

Returns:

  • (String)


253
# File 'lib/nomad/api/node.rb', line 253

field :Label, as: :label

#valueInteger (readonly)

The port value.

Returns:

  • (Integer)


258
# File 'lib/nomad/api/node.rb', line 258

field :Value, as: :value