Class: PirschApi::PageResource

Inherits:
BaseResource show all
Defined in:
lib/pirsch_api/resources/statistics/page.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



7
8
9
# File 'lib/pirsch_api/resources/statistics/page.rb', line 7

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

#request_urlObject



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

def request_url
  "statistics/page"
end