Class: RestApplicationEstimate

Inherits:
OpenShift::Model
  • Object
show all
Defined in:
app/models/rest_application_estimate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(components) ⇒ RestApplicationEstimate

Returns a new instance of RestApplicationEstimate.



4
5
6
# File 'app/models/rest_application_estimate.rb', line 4

def initialize(components)
  self.components = components
end

Instance Attribute Details

#componentsObject

Returns the value of attribute components.



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

def components
  @components
end

Instance Method Details

#to_xml(options = {}) ⇒ Object



8
9
10
11
# File 'app/models/rest_application_estimate.rb', line 8

def to_xml(options={})
  options[:tag_name] = "gear"
  super(options)
end