Class: SwaggerClient::GraphsApi
- Inherits:
-
Object
- Object
- SwaggerClient::GraphsApi
- Defined in:
- lib/swagger_client/api/graphs_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_price_miles_plot_data(api_key, car_type, opts = {}) ⇒ Array<PlotPoint>
Price, Miles plots data for given criteria Get price, miles plot data for active cars matching the given VIN’s basic specification or Year, Make, Model, Trim (Optional) criteria.
-
#get_price_miles_plot_data_with_http_info(api_key, car_type, opts = {}) ⇒ Array<(Array<PlotPoint>, Fixnum, Hash)>
Price, Miles plots data for given criteria Get price, miles plot data for active cars matching the given VIN's basic specification or Year, Make, Model, Trim (Optional) criteria.
-
#initialize(api_client = ApiClient.default) ⇒ GraphsApi
constructor
A new instance of GraphsApi.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/swagger_client/api/graphs_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_price_miles_plot_data(api_key, car_type, opts = {}) ⇒ Array<PlotPoint>
Price, Miles plots data for given criteria Get price, miles plot data for active cars matching the given VIN’s basic specification or Year, Make, Model, Trim (Optional) criteria
35 36 37 38 |
# File 'lib/swagger_client/api/graphs_api.rb', line 35 def get_price_miles_plot_data(api_key, car_type, opts = {}) data, status_code, headers = get_price_miles_plot_data_with_http_info(api_key, car_type, opts) return data end |
#get_price_miles_plot_data_with_http_info(api_key, car_type, opts = {}) ⇒ Array<(Array<PlotPoint>, Fixnum, Hash)>
Price, Miles plots data for given criteria Get price, miles plot data for active cars matching the given VIN's basic specification or Year, Make, Model, Trim (Optional) criteria
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/swagger_client/api/graphs_api.rb', line 52 def get_price_miles_plot_data_with_http_info(api_key, car_type, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: GraphsApi#get_price_miles_plot_data ..." end # verify the required parameter 'api_key' is set fail "Missing the required parameter 'api_key' when calling get_price_miles_plot_data" if api_key.nil? # verify the required parameter 'car_type' is set fail "Missing the required parameter 'car_type' when calling get_price_miles_plot_data" if car_type.nil? # resource path local_var_path = "/plots".sub('{format}','json') # query parameters query_params = {} query_params[:'api_key'] = api_key query_params[:'car_type'] = car_type query_params[:'vin'] = opts[:'vin'] if opts[:'vin'] query_params[:'year'] = opts[:'year'] if opts[:'year'] query_params[:'make'] = opts[:'make'] if opts[:'make'] query_params[:'model'] = opts[:'model'] if opts[:'model'] query_params[:'trim'] = opts[:'trim'] if opts[:'trim'] query_params[:'rows'] = opts[:'rows'] if opts[:'rows'] # header parameters header_params = {} # HTTP header 'Accept' (if needed) _header_accept = ['application/json'] _header_accept_result = @api_client.select_header_accept(_header_accept) and header_params['Accept'] = _header_accept_result # HTTP header 'Content-Type' _header_content_type = [] header_params['Content-Type'] = @api_client.select_header_content_type(_header_content_type) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] 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<PlotPoint>') if @api_client.config.debugging @api_client.config.logger.debug "API called: GraphsApi#get_price_miles_plot_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |