Class: CFoundry::V1::Infra

Inherits:
Object
  • Object
show all
Defined in:
lib/appfog-vmc-plugin/cfoundry/v1/infra.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#baseObject

Returns the value of attribute base.



6
7
8
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 6

def base
  @base
end

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 5

def description
  @description
end

#infraObject

Returns the value of attribute infra.



4
5
6
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 4

def infra
  @infra
end

#localityObject

Returns the value of attribute locality.



7
8
9
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 7

def locality
  @locality
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/appfog-vmc-plugin/cfoundry/v1/infra.rb', line 3

def name
  @name
end

#vendorObject

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

#appsObject



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: ==

Returns:

  • (Boolean)


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