lib/agrid_client/api/companies_api.rb in agrid-client-0.0.1 vs lib/agrid_client/api/companies_api.rb in agrid-client-0.0.2
- old
+ new
@@ -1,19 +1,5 @@
-=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 CompaniesApi
attr_accessor :api_client
def initialize(api_client = ApiClient.default)
@@ -78,21 +64,21 @@
end
return data, status_code, headers
end
#
- # Return all cities attended by the company
+ # Return all company's image
# @param id Company ID
# @param [Hash] opts the optional parameters
- # @return [CityCompany]
+ # @return Array<Image>
def get_images(id, opts = {})
data, _status_code, _headers = get_images_with_http_info(id, opts)
return data
end
#
- # Return all cities attended by the company
+ # Return all company's images
# @param id Company ID
# @param [Hash] opts the optional parameters
# @return [Array<(CityCompany, Fixnum, Hash)>] CityCompany data, response status code and response headers
def get_images_with_http_info(id, opts = {})
if @api_client.config.debugging
@@ -142,11 +128,11 @@
# Return a set of companies.
# @param service_id Service ID
# @param [Hash] opts the optional parameters
# @option opts [Integer] :offset Number to skip rows before beginning to return companies
# @option opts [Integer] :limit Limit number of companies on response(default is 12)
- # @return [InlineResponse200]
+ # @return [PaginatedCompanies]
def get_companies(service_id, opts = {})
data, _status_code, _headers = get_companies_with_http_info(service_id, opts)
return data
end
@@ -154,11 +140,11 @@
# Return a set of companies.
# @param service_id Service ID
# @param [Hash] opts the optional parameters
# @option opts [Integer] :offset Number to skip rows before beginning to return companies
# @option opts [Integer] :limit Limit number of companies on response(default is 12)
- # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
+ # @return [Array<(PaginatedCompanies, Fixnum, Hash)>] PaginatedCompanies data, response status code and response headers
def get_companies_with_http_info(service_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug "Calling API: CompaniesApi#get_companies ..."
end
@@ -194,10 +180,10 @@
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
- :return_type => 'InlineResponse200')
+ :return_type => 'PaginatedCompanies')
if @api_client.config.debugging
@api_client.config.logger.debug "API called: CompaniesApi#get_companies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end