Class: Jelastic::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/jelastic/node.rb

Direct Known Subclasses

DockerNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Node

Returns a new instance of Node.

Yields:

  • (_self)

Yield Parameters:



5
6
7
# File 'lib/jelastic/node.rb', line 5

def initialize
  yield(self) if block_given?
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/jelastic/node.rb', line 3

def count
  @count
end

#display_nameObject

Returns the value of attribute display_name.



3
4
5
# File 'lib/jelastic/node.rb', line 3

def display_name
  @display_name
end

#fixed_cloudletsObject

Returns the value of attribute fixed_cloudlets.



3
4
5
# File 'lib/jelastic/node.rb', line 3

def fixed_cloudlets
  @fixed_cloudlets
end

#flexible_cloudletsObject

Returns the value of attribute flexible_cloudlets.



3
4
5
# File 'lib/jelastic/node.rb', line 3

def flexible_cloudlets
  @flexible_cloudlets
end

#typeObject

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

Returns:

  • (Boolean)


17
18
19
# File 'lib/jelastic/node.rb', line 17

def docker?
  @type == 'docker'
end

#public_ip?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/jelastic/node.rb', line 13

def public_ip?
  @public_ip
end

#with_public_ipObject



9
10
11
# File 'lib/jelastic/node.rb', line 9

def with_public_ip
  @public_ip = true
end