Class: CFoundry::V1::Framework

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#detectionObject

Returns the value of attribute detection.



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

def detection
  @detection
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#runtimesObject

Returns the value of attribute runtimes.



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

def runtimes
  @runtimes
end

Instance Method Details

#appsObject



17
18
19
# File 'lib/cfoundry/v1/framework.rb', line 17

def apps
  [] # not supported by v1
end

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

Returns:

  • (Boolean)


12
13
14
# File 'lib/cfoundry/v1/framework.rb', line 12

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