Class: Garb::ReportResponse
- Inherits:
-
Object
- Object
- Garb::ReportResponse
- Defined in:
- lib/garb/report_response.rb
Constant Summary collapse
- KEYS =
['dxp:metric', 'dxp:dimension']
Instance Method Summary collapse
-
#initialize(response_body, instance_klass = OpenStruct) ⇒ ReportResponse
constructor
A new instance of ReportResponse.
- #results ⇒ Object
Constructor Details
#initialize(response_body, instance_klass = OpenStruct) ⇒ ReportResponse
Returns a new instance of ReportResponse.
5 6 7 8 |
# File 'lib/garb/report_response.rb', line 5 def initialize(response_body, instance_klass = OpenStruct) @xml = response_body @instance_klass = instance_klass end |
Instance Method Details
#results ⇒ Object
10 11 12 |
# File 'lib/garb/report_response.rb', line 10 def results @results ||= parse end |