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, version = nil, status = nil, series = nil, category = nil) ⇒ Runtime

Returns a new instance of Runtime.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cfoundry/v1/runtime.rb', line 6

def initialize(name, description = nil, debug_modes = nil,
               version = nil, status = nil, series = nil,
               category = nil)
  @name = name
  @description = description
  @debug_modes = debug_modes
  @version = version
  @status = status
  @series = series
  @category = category
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



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

def category
  @category
end

#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

#seriesObject

Returns the value of attribute series.



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

def series
  @series
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#versionObject

Returns the value of attribute version.



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

def version
  @version
end

Instance Method Details

#appsObject



23
24
25
# File 'lib/cfoundry/v1/runtime.rb', line 23

def apps
  [] # not supported by v1
end

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

Returns:

  • (Boolean)


18
19
20
# File 'lib/cfoundry/v1/runtime.rb', line 18

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