Class: RDStation::Analytics
- Inherits:
-
Object
- Object
- RDStation::Analytics
- Includes:
- HTTParty, RetryableRequest
- Defined in:
- lib/rdstation/analytics.rb
Constant Summary
Constants included from RetryableRequest
Instance Method Summary collapse
- #email_marketing(query_params = {}) ⇒ Object
-
#initialize(authorization:) ⇒ Analytics
constructor
A new instance of Analytics.
Methods included from RetryableRequest
#refresh_access_token, #retry_possible?, #retryable_request
Constructor Details
#initialize(authorization:) ⇒ Analytics
Returns a new instance of Analytics.
8 9 10 |
# File 'lib/rdstation/analytics.rb', line 8 def initialize(authorization:) = end |
Instance Method Details
#email_marketing(query_params = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rdstation/analytics.rb', line 12 def email_marketing(query_params={}) retryable_request() do || response = self.class.get(base_url, headers: .headers, query: query_params) ApiResponse.build(response) end end |