Class: Cep::Widenet

Inherits:
CepService show all
Defined in:
lib/brval/cep/widenet.rb

Constant Summary collapse

URL_HOME =

Thank you WideNet for this API apps.widenet.com.br/busca-cep/api-de-consulta

'http://apps.widenet.com.br/busca-cep/api/cep/'.freeze

Instance Attribute Summary

Attributes inherited from CepService

#cep, #url

Instance Method Summary collapse

Methods inherited from CepService

#check, #info

Constructor Details

#initialize(cep) ⇒ Widenet

Returns a new instance of Widenet.



9
10
11
12
# File 'lib/brval/cep/widenet.rb', line 9

def initialize cep
  super
  @url = URL_HOME + @cep + '.json'
end