Class: OctaSpace::Types::Node
- Inherits:
-
Data
- Object
- Data
- OctaSpace::Types::Node
- Defined in:
- lib/octaspace/types/node.rb
Overview
Value object representing a compute node
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ip ⇒ Object
readonly
Returns the value of attribute ip.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#prices ⇒ Object
readonly
Returns the value of attribute prices.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#system ⇒ Object
readonly
Returns the value of attribute system.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def id @id end |
#ip ⇒ Object (readonly)
Returns the value of attribute ip
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def ip @ip end |
#location ⇒ Object (readonly)
Returns the value of attribute location
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def location @location end |
#prices ⇒ Object (readonly)
Returns the value of attribute prices
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def prices @prices end |
#state ⇒ Object (readonly)
Returns the value of attribute state
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def state @state end |
#system ⇒ Object (readonly)
Returns the value of attribute system
6 7 8 |
# File 'lib/octaspace/types/node.rb', line 6 def system @system end |
Instance Method Details
#offline? ⇒ Boolean
9 |
# File 'lib/octaspace/types/node.rb', line 9 def offline? = !online? |
#online? ⇒ Boolean
8 |
# File 'lib/octaspace/types/node.rb', line 8 def online? = state == "online" |