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

- old
+ new

@@ -1,46 +1,32 @@ -=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 CitiesApi attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end - # + # # Returns all cities supported by at least one company # @param [Hash] opts the optional parameters # @option opts [String] :state State acronym to filter cities by state # @return [Array<CityWithFullState>] def cities_get(opts = {}) data, _status_code, _headers = cities_get_with_http_info(opts) return data end - # + # # Returns all cities supported by at least one company # @param [Hash] opts the optional parameters # @option opts [String] :state State acronym to filter cities by state # @return [Array<(Array<CityWithFullState>, Fixnum, Hash)>] Array<CityWithFullState> data, response status code and response headers def cities_get_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CitiesApi#cities_get ..." end - + # resource path local_var_path = "/cities".sub('{format}','json') # query parameters query_params = {}