lib/agrid_client/api/services_api.rb in agrid-client-0.0.1 vs lib/agrid_client/api/services_api.rb in agrid-client-0.0.2

- old
+ new

@@ -1,48 +1,34 @@ -=begin -Agrid Quotes API - - - -OpenAPI spec version: 1.0 - -Generated by: https://github.com/swagger-api/swagger-codegen.git - - -=end - -require "uri" - module AgridClient class ServicesApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end - # + # # Returns all available services # @param [Hash] opts the optional parameters # @option opts [String] :city_id City ID to filter services by city # @option opts [String] :tag Tag to filter a subset of services # @return [Array<Service>] def services_get(opts = {}) data, _status_code, _headers = services_get_with_http_info(opts) return data end - # + # # Returns all available services # @param [Hash] opts the optional parameters # @option opts [String] :city_id City ID to filter services by city # @option opts [String] :tag Tag to filter a subset of services # @return [Array<(Array<Service>, Fixnum, Hash)>] Array<Service> data, response status code and response headers def services_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: ServicesApi#services_get ..." end - + # resource path local_var_path = "/services".sub('{format}','json') # query parameters query_params = {}