Module: ViaCep

Defined in:
lib/via_cep.rb,
lib/via_cep/http.rb,
lib/via_cep/address.rb,
lib/via_cep/methods.rb,
lib/via_cep/version.rb,
lib/via_cep/instance.rb,
lib/via_cep/validators.rb,
lib/via_cep/search_by_address.rb

Defined Under Namespace

Modules: Errors, HTTP, Validators Classes: Address, Instance, SearchByAddress

Constant Summary collapse

BASE_URL =
'https://viacep.com.br'
METHODS =

Constant with the params mapped

return Hash

{
  zipcode: :cep,
  street: :logradouro,
  complement: :complemento,
  neighborhood: :bairro,
  city: :localidade,
  state: :uf,
  ibge: :ibge,
  gia: :gia,
  error: :erro,
  ddd: :ddd,
  siafi: :siafi
}.freeze
VERSION =
'3.1.4'