Class: CFoundry::V1::Runtime
- Inherits:
-
Object
- Object
- CFoundry::V1::Runtime
- Defined in:
- lib/cfoundry/v1/runtime.rb
Instance Attribute Summary collapse
-
#debug_modes ⇒ Object
Returns the value of attribute debug_modes.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #apps ⇒ Object
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(name, description = nil, debug_modes = nil) ⇒ Runtime
constructor
A new instance of Runtime.
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_modes ⇒ Object
Returns the value of attribute debug_modes.
3 4 5 |
# File 'lib/cfoundry/v1/runtime.rb', line 3 def debug_modes @debug_modes end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/cfoundry/v1/runtime.rb', line 3 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/cfoundry/v1/runtime.rb', line 3 def name @name end |
Instance Method Details
#apps ⇒ Object
16 17 18 |
# File 'lib/cfoundry/v1/runtime.rb', line 16 def apps [] # not supported by v1 end |
#eql?(other) ⇒ Boolean Also known as: ==
11 12 13 |
# File 'lib/cfoundry/v1/runtime.rb', line 11 def eql?(other) other.is_a?(self.class) && other.name == @name end |