Class: Aimastering::StatisticsApi
- Inherits:
-
Object
- Object
- Aimastering::StatisticsApi
- Defined in:
- lib/aimastering/api/statistics_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_group_buy_statistics(opts = {}) ⇒ GroupBuyStatistics
Get group buy statistics.
-
#get_group_buy_statistics_with_http_info(opts = {}) ⇒ Array<(GroupBuyStatistics, Fixnum, Hash)>
Get group buy statistics.
-
#initialize(api_client = ApiClient.default) ⇒ StatisticsApi
constructor
A new instance of StatisticsApi.
-
#list_anonymized_masterings(opts = {}) ⇒ Array<AnonymizedMastering>
Get anonymized masterings.
-
#list_anonymized_masterings_with_http_info(opts = {}) ⇒ Array<(Array<AnonymizedMastering>, Fixnum, Hash)>
Get anonymized masterings.
-
#list_kpis(opts = {}) ⇒ Kpi
Get KPIs.
-
#list_kpis_with_http_info(opts = {}) ⇒ Array<(Kpi, Fixnum, Hash)>
Get KPIs.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ StatisticsApi
Returns a new instance of StatisticsApi.
19 20 21 |
# File 'lib/aimastering/api/statistics_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/aimastering/api/statistics_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_group_buy_statistics(opts = {}) ⇒ GroupBuyStatistics
Get group buy statistics.
27 28 29 30 |
# File 'lib/aimastering/api/statistics_api.rb', line 27 def get_group_buy_statistics(opts = {}) data, _status_code, _headers = get_group_buy_statistics_with_http_info(opts) return data end |
#get_group_buy_statistics_with_http_info(opts = {}) ⇒ Array<(GroupBuyStatistics, Fixnum, Hash)>
Get group buy statistics.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/aimastering/api/statistics_api.rb', line 36 def get_group_buy_statistics_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: StatisticsApi.get_group_buy_statistics ..." end # resource path local_var_path = "/statistics/group_buy" # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['bearer'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GroupBuyStatistics') if @api_client.config.debugging @api_client.config.logger.debug "API called: StatisticsApi#get_group_buy_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_anonymized_masterings(opts = {}) ⇒ Array<AnonymizedMastering>
Get anonymized masterings.
74 75 76 77 |
# File 'lib/aimastering/api/statistics_api.rb', line 74 def list_anonymized_masterings(opts = {}) data, _status_code, _headers = list_anonymized_masterings_with_http_info(opts) return data end |
#list_anonymized_masterings_with_http_info(opts = {}) ⇒ Array<(Array<AnonymizedMastering>, Fixnum, Hash)>
Get anonymized masterings.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'lib/aimastering/api/statistics_api.rb', line 83 def list_anonymized_masterings_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: StatisticsApi.list_anonymized_masterings ..." end # resource path local_var_path = "/statistics/anonymized_masterings" # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['bearer'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Array<AnonymizedMastering>') if @api_client.config.debugging @api_client.config.logger.debug "API called: StatisticsApi#list_anonymized_masterings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#list_kpis(opts = {}) ⇒ Kpi
Get KPIs.
121 122 123 124 |
# File 'lib/aimastering/api/statistics_api.rb', line 121 def list_kpis(opts = {}) data, _status_code, _headers = list_kpis_with_http_info(opts) return data end |
#list_kpis_with_http_info(opts = {}) ⇒ Array<(Kpi, Fixnum, Hash)>
Get KPIs.
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
# File 'lib/aimastering/api/statistics_api.rb', line 130 def list_kpis_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: StatisticsApi.list_kpis ..." end # resource path local_var_path = "/statistics/kpis" # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['bearer'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'Kpi') if @api_client.config.debugging @api_client.config.logger.debug "API called: StatisticsApi#list_kpis\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |