Module: AgridClient

Defined in:
lib/agrid_client/api_error.rb,
lib/agrid_client.rb,
lib/agrid_client/version.rb,
lib/agrid_client/api_client.rb,
lib/agrid_client/models/item.rb,
lib/agrid_client/models/lead.rb,
lib/agrid_client/models/sale.rb,
lib/agrid_client/models/image.rb,
lib/agrid_client/models/phone.rb,
lib/agrid_client/models/quote.rb,
lib/agrid_client/models/state.rb,
lib/agrid_client/api/leads_api.rb,
lib/agrid_client/configuration.rb,
lib/agrid_client/models/filter.rb,
lib/agrid_client/api/cities_api.rb,
lib/agrid_client/api/quotes_api.rb,
lib/agrid_client/models/address.rb,
lib/agrid_client/models/company.rb,
lib/agrid_client/models/service.rb,
lib/agrid_client/api/filters_api.rb,
lib/agrid_client/models/category.rb,
lib/agrid_client/models/customer.rb,
lib/agrid_client/models/location.rb,
lib/agrid_client/api/services_api.rb,
lib/agrid_client/api/companies_api.rb,
lib/agrid_client/models/data_check.rb,
lib/agrid_client/models/lead_input.rb,
lib/agrid_client/models/price_range.rb,
lib/agrid_client/models/city_company.rb,
lib/agrid_client/models/customer_input.rb,
lib/agrid_client/models/company_ranking.rb,
lib/agrid_client/models/filter_category.rb,
lib/agrid_client/models/paginated_quotes.rb,
lib/agrid_client/models/paginated_companies.rb,
lib/agrid_client/models/city_with_full_state.rb,
lib/agrid_client/models/city_with_state_name.rb

Overview

Agrid Quotes API

OpenAPI spec version: 1.0

Generated by: github.com/swagger-api/swagger-codegen.git

Defined Under Namespace

Classes: Address, ApiClient, ApiError, Category, CitiesApi, CityCompany, CityWithFullState, CityWithStateName, CompaniesApi, Company, CompanyRanking, Configuration, Customer, CustomerInput, DataCheck, Filter, FilterCategory, FiltersApi, Image, Item, Lead, LeadInput, LeadsApi, Location, PaginatedCompanies, PaginatedQuotes, Phone, PriceRange, Quote, QuotesApi, Sale, Service, ServicesApi, State

Constant Summary collapse

VERSION =
"0.0.7"

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

AgridClient.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



61
62
63
64
65
66
67
# File 'lib/agrid_client.rb', line 61

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end