struct Burocracia::CEP::Address
- Burocracia::CEP::Address
- Struct
- Value
- Object
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.crConstructors
Class Method Summary
Instance Method Summary
- #cep : String
- #cep=(_cep : String)
- #city : String
- #city=(_city : String)
- #neighborhood : String
- #neighborhood=(_neighborhood : String)
- #state : String
- #state=(_state : String)
- #street : String
- #street=(_street : String)
- #to_json(json : JSON::Builder)