Class: CFoundry::V1::Service
- Inherits:
-
Object
- Object
- CFoundry::V1::Service
- Defined in:
- lib/cfoundry/v1/service.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#label ⇒ Object
Returns the value of attribute label.
-
#type ⇒ Object
Returns the value of attribute type.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
- #active ⇒ Object
-
#initialize(label, version = nil, description = nil, type = nil) ⇒ Service
constructor
A new instance of Service.
- #provider ⇒ Object
Constructor Details
#initialize(label, version = nil, description = nil, type = nil) ⇒ Service
Returns a new instance of Service.
5 6 7 8 9 10 |
# File 'lib/cfoundry/v1/service.rb', line 5 def initialize(label, version = nil, description = nil, type = nil) @label = label @description = description @version = version @type = nil end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/cfoundry/v1/service.rb', line 3 def description @description end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/cfoundry/v1/service.rb', line 3 def label @label end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/cfoundry/v1/service.rb', line 3 def type @type end |
#version ⇒ Object
Returns the value of attribute version.
3 4 5 |
# File 'lib/cfoundry/v1/service.rb', line 3 def version @version end |
Instance Method Details
#active ⇒ Object
16 17 18 |
# File 'lib/cfoundry/v1/service.rb', line 16 def active true end |
#provider ⇒ Object
12 13 14 |
# File 'lib/cfoundry/v1/service.rb', line 12 def provider "core" end |