Class: Kontakt::Analytics
- Inherits:
-
Auth
- Object
- Configuration
- Auth
- Kontakt::Analytics
- Defined in:
- lib/kontakt.rb
Instance Attribute Summary
Attributes inherited from Configuration
Class Method Summary collapse
-
.metrics_ranges(venue_id, startTime, options = {endTime: Time.now.to_i, maxResults: 100}) ⇒ Object
=> Analytics.
Methods inherited from Auth
Methods inherited from Configuration
Constructor Details
This class inherits a constructor from Kontakt::Configuration
Class Method Details
.metrics_ranges(venue_id, startTime, options = {endTime: Time.now.to_i, maxResults: 100}) ⇒ Object
> Analytics
113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/kontakt.rb', line 113 def self.metrics_ranges(venue_id, startTime, = {endTime: Time.now.to_i, maxResults: 100}) = { params: {:sourceType => "VENUE", :sourceId => venue_id, :iso8601Timestamps => "true", :startTimestamp => startTime, :endTimestamp => [:endTime], :maxResults => [:maxResults]} } return JSON.parse(make_request('get', '/analytics/metrics/ranges', ).body) end |