Class: RestGear
- Inherits:
-
OpenShift::Model
- Object
- OpenShift::Model
- RestGear
- Includes:
- LegacyBrokerHelper
- Defined in:
- app/models/rest_gear.rb
Instance Attribute Summary collapse
-
#components ⇒ Object
Returns the value of attribute components.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(uuid, components) ⇒ RestGear
constructor
A new instance of RestGear.
- #to_xml(options = {}) ⇒ Object
Methods included from LegacyBrokerHelper
Constructor Details
#initialize(uuid, components) ⇒ RestGear
Returns a new instance of RestGear.
5 6 7 8 |
# File 'app/models/rest_gear.rb', line 5 def initialize(uuid, components) self.uuid = uuid self.components = components end |
Instance Attribute Details
#components ⇒ Object
Returns the value of attribute components.
2 3 4 |
# File 'app/models/rest_gear.rb', line 2 def components @components end |
#uuid ⇒ Object
Returns the value of attribute uuid.
2 3 4 |
# File 'app/models/rest_gear.rb', line 2 def uuid @uuid end |
Instance Method Details
#to_xml(options = {}) ⇒ Object
10 11 12 13 |
# File 'app/models/rest_gear.rb', line 10 def to_xml(={}) [:tag_name] = "gear" super() end |