Class: Cep::Postmon
- Inherits:
-
CepService
- Object
- CepService
- Cep::Postmon
- 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
Instance Method Summary collapse
-
#initialize(cep) ⇒ Postmon
constructor
A new instance of Postmon.
Methods inherited from CepService
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 |