lib/sappy/responses/daily_statistics.rb in sappy-0.1.4 vs lib/sappy/responses/daily_statistics.rb in sappy-0.1.5
- old
+ new
@@ -1,11 +1,11 @@
module Sappy
module Responses
class DailyStatistics < Response
attr_reader :statistics
- def success(hash)
- @statistics = hash["checks"].first
+ def success
+ @statistics = first_xpath('//checks')
end
end
end
end