Class: CFoundry::V1::Runtime

Inherits:
Object
  • Object
show all
Defined in:
lib/cfoundry/v1/runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, description = nil, debug_modes = nil) ⇒ Runtime

Returns a new instance of Runtime.



5
6
7
8
9
# File 'lib/cfoundry/v1/runtime.rb', line 5

def initialize(name, description = nil, debug_modes = nil)
  @name = name
  @description = description
  @debug_modes = debug_modes
end

Instance Attribute Details

#debug_modesObject

Returns the value of attribute debug_modes.



3
4
5
# File 'lib/cfoundry/v1/runtime.rb', line 3

def debug_modes
  @debug_modes
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/cfoundry/v1/runtime.rb', line 3

def description
  @description
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/cfoundry/v1/runtime.rb', line 3

def name
  @name
end

Instance Method Details

#appsObject



16
17
18
# File 'lib/cfoundry/v1/runtime.rb', line 16

def apps
  [] # not supported by v1
end

#eql?(other) ⇒ Boolean Also known as: ==

Returns:

  • (Boolean)


11
12
13
# File 'lib/cfoundry/v1/runtime.rb', line 11

def eql?(other)
  other.is_a?(self.class) && other.name == @name
end