Class: CFoundry::V1::Framework
- Inherits:
-
Object
- Object
- CFoundry::V1::Framework
- Defined in:
- lib/cfoundry/v1/framework.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#detection ⇒ Object
Returns the value of attribute detection.
-
#name ⇒ Object
Returns the value of attribute name.
-
#runtimes ⇒ Object
Returns the value of attribute runtimes.
Instance Method Summary collapse
- #apps ⇒ Object
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(name, description = nil, runtimes = [], detection = nil) ⇒ Framework
constructor
A new instance of Framework.
Constructor Details
#initialize(name, description = nil, runtimes = [], detection = nil) ⇒ Framework
Returns a new instance of Framework.
5 6 7 8 9 10 |
# File 'lib/cfoundry/v1/framework.rb', line 5 def initialize(name, description = nil, runtimes = [], detection = nil) @name = name @description = description @runtimes = runtimes @detection = detection end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/cfoundry/v1/framework.rb', line 3 def description @description end |
#detection ⇒ Object
Returns the value of attribute detection.
3 4 5 |
# File 'lib/cfoundry/v1/framework.rb', line 3 def detection @detection end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/cfoundry/v1/framework.rb', line 3 def name @name end |
#runtimes ⇒ Object
Returns the value of attribute runtimes.
3 4 5 |
# File 'lib/cfoundry/v1/framework.rb', line 3 def runtimes @runtimes end |
Instance Method Details
#apps ⇒ Object
17 18 19 |
# File 'lib/cfoundry/v1/framework.rb', line 17 def apps [] # not supported by v1 end |
#eql?(other) ⇒ Boolean Also known as: ==
12 13 14 |
# File 'lib/cfoundry/v1/framework.rb', line 12 def eql?(other) other.is_a?(self.class) && other.name == @name end |