Class: Sappy::Responses::AnnualStatistics
- Inherits:
-
Sappy::Response
- Object
- Sappy::Response
- Sappy::Responses::AnnualStatistics
- Defined in:
- lib/sappy/responses/annual_statistics.rb
Instance Attribute Summary collapse
-
#statistics ⇒ Object
readonly
Returns the value of attribute statistics.
Attributes inherited from Sappy::Response
Instance Method Summary collapse
Methods inherited from Sappy::Response
#error_response, #error_response?, #failure, #first_xpath, #initialize, parse, #parse
Constructor Details
This class inherits a constructor from Sappy::Response
Instance Attribute Details
#statistics ⇒ Object (readonly)
Returns the value of attribute statistics.
4 5 6 |
# File 'lib/sappy/responses/annual_statistics.rb', line 4 def statistics @statistics end |
Instance Method Details
#success ⇒ Object
6 7 8 |
# File 'lib/sappy/responses/annual_statistics.rb', line 6 def success @statistics = first_xpath('//monthlystats') end |