Class: BOSSMan::Result
- Inherits:
-
BaseValueObject
- Object
- BaseValueObject
- BOSSMan::Result
- Defined in:
- lib/bossman/result.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Result
constructor
A new instance of Result.
- #to_xml ⇒ Object (also: #to_s)
Methods inherited from BaseValueObject
#set_parameter, #to_json, #to_yaml
Constructor Details
#initialize(response) ⇒ Result
Returns a new instance of Result.
4 5 6 7 |
# File 'lib/bossman/result.rb', line 4 def initialize(response) @response = response response.each { |key, value| set_parameter(key, value) } end |
Instance Method Details
#to_xml ⇒ Object Also known as: to_s
9 10 11 |
# File 'lib/bossman/result.rb', line 9 def to_xml @response.to_xml(:root => 'result') end |