Class: Sappy::Responses::MonthlyStatistics

Inherits:
Sappy::Response show all
Defined in:
lib/sappy/responses/monthly_statistics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Sappy::Response

#failure, #initialize, parse, #parse

Constructor Details

This class inherits a constructor from Sappy::Response

Instance Attribute Details

#statisticsObject (readonly)

Returns the value of attribute statistics.



4
5
6
# File 'lib/sappy/responses/monthly_statistics.rb', line 4

def statistics
  @statistics
end

Instance Method Details

#success(hash) ⇒ Object



6
7
8
# File 'lib/sappy/responses/monthly_statistics.rb', line 6

def success(hash)
  @statistics = hash["dailystats"].first
end