Class: BOSSMan::ResultSet
- Inherits:
-
BaseValueObject
- Object
- BaseValueObject
- BOSSMan::ResultSet
- Defined in:
- lib/bossman/result_set.rb
Class Method Summary collapse
Instance Method Summary collapse
- #_dump(level) ⇒ Object
-
#initialize(response) ⇒ ResultSet
constructor
A new instance of ResultSet.
- #to_xml ⇒ Object (also: #to_s)
Methods inherited from BaseValueObject
#method_missing, #set_parameter, #to_json, #to_yaml
Constructor Details
#initialize(response) ⇒ ResultSet
Returns a new instance of ResultSet.
4 5 6 7 |
# File 'lib/bossman/result_set.rb', line 4 def initialize(response) @response = response process_response end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BOSSMan::BaseValueObject
Class Method Details
Instance Method Details
#_dump(level) ⇒ Object
13 14 15 |
# File 'lib/bossman/result_set.rb', line 13 def _dump(level) @response.to_json end |
#to_xml ⇒ Object Also known as: to_s
9 10 11 |
# File 'lib/bossman/result_set.rb', line 9 def to_xml @response['ysearchresponse'].to_xml(:root => 'resultset') end |