Class: Garb::ReportResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/garb/report_response.rb

Constant Summary collapse

KEYS =
['dxp:metric', 'dxp:dimension']

Instance Method Summary collapse

Constructor Details

#initialize(response_body) ⇒ ReportResponse

Returns a new instance of ReportResponse.



5
6
7
# File 'lib/garb/report_response.rb', line 5

def initialize(response_body)
  @xml = response_body
end

Instance Method Details

#resultsObject



9
10
11
# File 'lib/garb/report_response.rb', line 9

def results
  @results ||= parse
end