Class: BOSSMan::Result

Inherits:
BaseValueObject show all
Defined in:
lib/bossman/result.rb

Instance Method Summary collapse

Methods inherited from BaseValueObject

#method_missing, #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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BOSSMan::BaseValueObject

Instance Method Details

#to_xmlObject Also known as: to_s



9
10
11
# File 'lib/bossman/result.rb', line 9

def to_xml
  @response.to_xml(:root => 'result')
end