Class: Cep::Postmon

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

Constant Summary collapse

URL_HOME =

Thank you Postmon for this API postmon.com.br/

'https://api.postmon.com.br/v1/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) ⇒ Postmon

Returns a new instance of Postmon.



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

def initialize cep
  super
  @url = URL_HOME + @cep
end