Class: CFoundry::V1::Infra
- Inherits:
-
Object
- Object
- CFoundry::V1::Infra
- Defined in:
- lib/appfog-vmc-plugin/cfoundry/v1/infra.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
Returns the value of attribute base.
-
#description ⇒ Object
Returns the value of attribute description.
-
#infra ⇒ Object
Returns the value of attribute infra.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#name ⇒ Object
Returns the value of attribute name.
-
#vendor ⇒ Object
Returns the value of attribute vendor.
Instance Method Summary collapse
- #apps ⇒ Object
- #eql?(other) ⇒ Boolean (also: #==)
-
#initialize(name, infra = nil, description = nil, base = nil, locality = nil, vendor = nil) ⇒ Infra
constructor
A new instance of Infra.
Constructor Details
#initialize(name, infra = nil, description = nil, base = nil, locality = nil, vendor = nil) ⇒ Infra
Returns a new instance of Infra.
10 11 12 13 14 15 16 17 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 10 def initialize(name, infra = nil, description = nil, base = nil, locality = nil, vendor = nil) @name = name @infra = infra @description = description @locality = locality @vendor = vendor @base = base end |
Instance Attribute Details
#base ⇒ Object
Returns the value of attribute base.
6 7 8 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 6 def base @base end |
#description ⇒ Object
Returns the value of attribute description.
5 6 7 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 5 def description @description end |
#infra ⇒ Object
Returns the value of attribute infra.
4 5 6 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 4 def infra @infra end |
#locality ⇒ Object
Returns the value of attribute locality.
7 8 9 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 7 def locality @locality end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 3 def name @name end |
#vendor ⇒ Object
Returns the value of attribute vendor.
8 9 10 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 8 def vendor @vendor end |
Instance Method Details
#apps ⇒ Object
24 25 26 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 24 def apps [] # not supported by v1 end |
#eql?(other) ⇒ Boolean Also known as: ==
19 20 21 |
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 19 def eql?(other) other.is_a?(self.class) && other.name == @nameidp end |