Class: PirschApi::ActiveResource

Inherits:
BaseResource show all
Defined in:
lib/pirsch_api/resources/statistics/active.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/active.rb', line 7

def parse_response(body)
  Active.new JSON.parse(body)
end

#request_urlObject



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

def request_url
  "statistics/active"
end