easyplace
Version:
API to search for ceps, streets, neighborhoods and other places
34 lines (27 loc) • 592 B
JavaScript
class Place {
constructor(cep, street, complement,
neighborhood, city, state) {
this.cep = cep;
this.street = street;
this.complement = complement;
this.neighborhood = neighborhood;
this.city = city;
this.state = state;
}
getCep() {
return this.cep;
}
getNeighborhood() {
return this.neighborhood;
}
getComplement() {
return this.complement;
}
getCity() {
return this.city;
}
getState() {
return this.state;
}
}
export default Place;