Class: FinchAPI::Models::Location
- Defined in:
- lib/finch-api/models/location.rb
Instance Attribute Summary collapse
-
#city ⇒ String?
City, district, suburb, town, or village.
-
#country ⇒ String?
The 2-letter ISO 3166 country code.
-
#line1 ⇒ String?
Street address or PO box.
-
#line2 ⇒ String?
Apartment, suite, unit, or building.
- #name ⇒ String?
-
#postal_code ⇒ String?
The postal code or zip code.
- #source_id ⇒ String?
-
#state ⇒ String?
The state code.
Instance Method Summary collapse
-
#initialize(city: nil, country: nil, line1: nil, line2: nil, name: nil, postal_code: nil, source_id: nil, state: nil) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(city: nil, country: nil, line1: nil, line2: nil, name: nil, postal_code: nil, source_id: nil, state: nil) ⇒ Location
Returns a new instance of Location.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/finch-api/models/location.rb', line 10 def initialize( city: nil, country: nil, line1: nil, line2: nil, name: nil, postal_code: nil, source_id: nil, state: nil, ** ) super end |
Instance Attribute Details
#city ⇒ String?
City, district, suburb, town, or village.
10 |
# File 'lib/finch-api/models/location.rb', line 10 optional :city, String, nil?: true |
#country ⇒ String?
The 2-letter ISO 3166 country code.
16 |
# File 'lib/finch-api/models/location.rb', line 16 optional :country, String, nil?: true |
#line1 ⇒ String?
Street address or PO box.
22 |
# File 'lib/finch-api/models/location.rb', line 22 optional :line1, String, nil?: true |
#line2 ⇒ String?
Apartment, suite, unit, or building.
28 |
# File 'lib/finch-api/models/location.rb', line 28 optional :line2, String, nil?: true |
#name ⇒ String?
33 |
# File 'lib/finch-api/models/location.rb', line 33 optional :name, String, nil?: true |
#postal_code ⇒ String?
The postal code or zip code.
39 |
# File 'lib/finch-api/models/location.rb', line 39 optional :postal_code, String, nil?: true |
#source_id ⇒ String?
44 |
# File 'lib/finch-api/models/location.rb', line 44 optional :source_id, String, nil?: true |
#state ⇒ String?
The state code.
50 |
# File 'lib/finch-api/models/location.rb', line 50 optional :state, String, nil?: true |