Class: Nomad::Network
Constant Summary
Constants inherited from Response
Instance Attribute Summary collapse
-
#cidr ⇒ String
readonly
The network cidr.
-
#device ⇒ String
readonly
The network device.
-
#dynamic_ports ⇒ Array<Port>
readonly
The network dynamic_ports.
-
#ip ⇒ String
readonly
The network ip.
-
#megabits ⇒ Integer
readonly
The network megabits.
-
#reserved_ports ⇒ Array<Port>
readonly
The network reserved_ports.
Method Summary
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Nomad::Response
Instance Attribute Details
#cidr ⇒ String (readonly)
The network cidr.
222 |
# File 'lib/nomad/api/node.rb', line 222 field :CIDR, as: :cidr, load: :string_as_nil |
#device ⇒ String (readonly)
The network device.
217 |
# File 'lib/nomad/api/node.rb', line 217 field :Device, as: :device, load: :string_as_nil |
#dynamic_ports ⇒ Array<Port> (readonly)
The network dynamic_ports.
244 245 246 |
# File 'lib/nomad/api/node.rb', line 244 field :DynamicPorts, as: :dynamic_ports, load: ->(items) { Array(items).map { |i| Port.decode(i) } } |
#ip ⇒ String (readonly)
The network ip.
227 |
# File 'lib/nomad/api/node.rb', line 227 field :IP, as: :ip, load: :string_as_nil |
#megabits ⇒ Integer (readonly)
The network megabits.
232 |
# File 'lib/nomad/api/node.rb', line 232 field :MBits, as: :megabits, load: :int_as_size_in_megabits |