struct Burocracia::CEP::Address

Overview

The Address struct provides API to fetch addresses using an external serivce, the Postmon API.

Burocracia::CEP::Address.find("80210130")
=> Burocracia::CEP::Address(@cep="80210130", @neighborhood="Jardim Botânico", @city="Curitiba", @street="Rua José Ananias Mauad", @state="PR")

Extended Modules

Defined in:

burocracia/cep/address.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(__temp_33 : JSON::PullParser) #

Class Method Detail

def self.find(cep) #

[View source]

Instance Method Detail

def cep : String #

def cep=(_cep : String) #

def city : String #

def city=(_city : String) #

def neighborhood : String #

def neighborhood=(_neighborhood : String) #

def state : String #

def state=(_state : String) #

def street : String #

def street=(_street : String) #

def to_json(json : JSON::Builder) #