Class: Composio::AnalyticsApi
- Inherits:
-
Object
- Object
- Composio::AnalyticsApi
- Defined in:
- lib/composio/api/analytics_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get(last_time_period: SENTINEL, extra: {}) ⇒ Object
Get analytics.
-
#get_top_entities(query: SENTINEL, extra: {}) ⇒ Object
Get top entities.
-
#get_top_entities_with_http_info(query: SENTINEL, extra: {}) ⇒ Object
Get top entities.
-
#get_with_http_info(last_time_period: SENTINEL, extra: {}) ⇒ Object
Get analytics.
-
#initialize(api_client = ApiClient.default) ⇒ AnalyticsApi
constructor
A new instance of AnalyticsApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ AnalyticsApi
Returns a new instance of AnalyticsApi.
15 16 17 |
# File 'lib/composio/api/analytics_api.rb', line 15 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/composio/api/analytics_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#get(last_time_period: SENTINEL, extra: {}) ⇒ Object
Get analytics
23 24 25 26 27 |
# File 'lib/composio/api/analytics_api.rb', line 23 def get(last_time_period: SENTINEL, extra: {}) extra[:last_time_period] = last_time_period if last_time_period != SENTINEL api_response = get_with_http_info_impl(extra) api_response.data end |
#get_top_entities(query: SENTINEL, extra: {}) ⇒ Object
Get top entities
105 106 107 108 109 |
# File 'lib/composio/api/analytics_api.rb', line 105 def get_top_entities(query: SENTINEL, extra: {}) extra[:query] = query if query != SENTINEL api_response = get_top_entities_with_http_info_impl(extra) api_response.data end |
#get_top_entities_with_http_info(query: SENTINEL, extra: {}) ⇒ Object
Get top entities
115 116 117 118 |
# File 'lib/composio/api/analytics_api.rb', line 115 def get_top_entities_with_http_info(query: SENTINEL, extra: {}) extra[:query] = query if query != SENTINEL get_top_entities_with_http_info_impl(extra) end |
#get_with_http_info(last_time_period: SENTINEL, extra: {}) ⇒ Object
Get analytics
33 34 35 36 |
# File 'lib/composio/api/analytics_api.rb', line 33 def get_with_http_info(last_time_period: SENTINEL, extra: {}) extra[:last_time_period] = last_time_period if last_time_period != SENTINEL get_with_http_info_impl(extra) end |