Class: Jelastic::Node
- Inherits:
-
Object
- Object
- Jelastic::Node
- Defined in:
- lib/jelastic/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#fixed_cloudlets ⇒ Object
Returns the value of attribute fixed_cloudlets.
-
#flexible_cloudlets ⇒ Object
Returns the value of attribute flexible_cloudlets.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #docker? ⇒ Boolean
-
#initialize {|_self| ... } ⇒ Node
constructor
A new instance of Node.
- #public_ip? ⇒ Boolean
- #with_public_ip ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Node
Returns a new instance of Node.
5 6 7 |
# File 'lib/jelastic/node.rb', line 5 def initialize yield(self) if block_given? end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/jelastic/node.rb', line 3 def count @count end |
#display_name ⇒ Object
Returns the value of attribute display_name.
3 4 5 |
# File 'lib/jelastic/node.rb', line 3 def display_name @display_name end |
#fixed_cloudlets ⇒ Object
Returns the value of attribute fixed_cloudlets.
3 4 5 |
# File 'lib/jelastic/node.rb', line 3 def fixed_cloudlets @fixed_cloudlets end |
#flexible_cloudlets ⇒ Object
Returns the value of attribute flexible_cloudlets.
3 4 5 |
# File 'lib/jelastic/node.rb', line 3 def flexible_cloudlets @flexible_cloudlets end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/jelastic/node.rb', line 3 def type @type end |
Instance Method Details
#docker? ⇒ Boolean
17 18 19 |
# File 'lib/jelastic/node.rb', line 17 def docker? @type == 'docker' end |
#public_ip? ⇒ Boolean
13 14 15 |
# File 'lib/jelastic/node.rb', line 13 def public_ip? @public_ip end |
#with_public_ip ⇒ Object
9 10 11 |
# File 'lib/jelastic/node.rb', line 9 def with_public_ip @public_ip = true end |