first commit with existing project files
This commit is contained in:
29
models/Address.js
Normal file
29
models/Address.js
Normal file
@@ -0,0 +1,29 @@
|
||||
export class Address {
|
||||
constructor(street, suite, city, zipcode, geo) {
|
||||
this._street = street;
|
||||
this._suite = suite;
|
||||
this._city = city;
|
||||
this._zipcode = zipcode;
|
||||
this._geo = geo;
|
||||
}
|
||||
|
||||
get street() { return this._street; }
|
||||
|
||||
get suite() { return this._suite; }
|
||||
|
||||
get city() { return this._city; }
|
||||
|
||||
get zipcode() { return this._zipcode; }
|
||||
|
||||
get geo() { return this._geo; }
|
||||
|
||||
set street(street) { this._street = street; }
|
||||
|
||||
set suite(suite) { this._suite = suite; }
|
||||
|
||||
set city(city) { this._city = city; }
|
||||
|
||||
set zipcode(zipcode) { this._zipcode = zipcode; }
|
||||
|
||||
set geo(geo) { this._geo = geo; }
|
||||
}
|
||||
Reference in New Issue
Block a user