Class: RestGear

Inherits:
OpenShift::Model
  • Object
show all
Includes:
LegacyBrokerHelper
Defined in:
app/models/rest_gear.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from LegacyBrokerHelper

#get_cached

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

#componentsObject

Returns the value of attribute components.



2
3
4
# File 'app/models/rest_gear.rb', line 2

def components
  @components
end

#uuidObject

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(options={})
  options[:tag_name] = "gear"
  super(options)
end