Class: PirschApi::EventResource

Inherits:
BaseResource show all
Defined in:
lib/pirsch_api/resources/statistics/event.rb

Instance Attribute Summary

Attributes inherited from BaseResource

#client, #domain, #filters

Instance Method Summary collapse

Methods inherited from BaseResource

#errors, #initialize, #run, #valid?

Constructor Details

This class inherits a constructor from PirschApi::BaseResource

Instance Method Details

#parse_response(body) ⇒ Object



6
7
8
# File 'lib/pirsch_api/resources/statistics/event.rb', line 6

def parse_response(body)
  JSON.parse(body).map{ |o| Event.new o }
end

#request_urlObject



3
4
5
# File 'lib/pirsch_api/resources/statistics/event.rb', line 3

def request_url
  "statistics/events"
end