Class: Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1UspsAddress
- Inherits:
-
Object
- Object
- Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1UspsAddress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/addressvalidation_v1/classes.rb,
lib/google/apis/addressvalidation_v1/representations.rb,
lib/google/apis/addressvalidation_v1/representations.rb
Overview
USPS representation of a US address.
Instance Attribute Summary collapse
-
#city ⇒ String
City name.
-
#city_state_zip_address_line ⇒ String
City + state + postal code.
-
#firm ⇒ String
Firm name.
-
#first_address_line ⇒ String
First address line.
-
#second_address_line ⇒ String
Second address line.
-
#state ⇒ String
2 letter state code.
-
#urbanization ⇒ String
Puerto Rican urbanization name.
-
#zip_code ⇒ String
Postal code e.g.
-
#zip_code_extension ⇒ String
4-digit postal code extension e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsAddressvalidationV1UspsAddress
constructor
A new instance of GoogleMapsAddressvalidationV1UspsAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsAddressvalidationV1UspsAddress
Returns a new instance of GoogleMapsAddressvalidationV1UspsAddress.
514 515 516 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 514 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city ⇒ String
City name.
Corresponds to the JSON property city
472 473 474 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 472 def city @city end |
#city_state_zip_address_line ⇒ String
City + state + postal code.
Corresponds to the JSON property cityStateZipAddressLine
477 478 479 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 477 def city_state_zip_address_line @city_state_zip_address_line end |
#firm ⇒ String
Firm name.
Corresponds to the JSON property firm
482 483 484 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 482 def firm @firm end |
#first_address_line ⇒ String
First address line.
Corresponds to the JSON property firstAddressLine
487 488 489 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 487 def first_address_line @first_address_line end |
#second_address_line ⇒ String
Second address line.
Corresponds to the JSON property secondAddressLine
492 493 494 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 492 def second_address_line @second_address_line end |
#state ⇒ String
2 letter state code.
Corresponds to the JSON property state
497 498 499 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 497 def state @state end |
#urbanization ⇒ String
Puerto Rican urbanization name.
Corresponds to the JSON property urbanization
502 503 504 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 502 def urbanization @urbanization end |
#zip_code ⇒ String
Postal code e.g. 10009.
Corresponds to the JSON property zipCode
507 508 509 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 507 def zip_code @zip_code end |
#zip_code_extension ⇒ String
4-digit postal code extension e.g. 5023.
Corresponds to the JSON property zipCodeExtension
512 513 514 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 512 def zip_code_extension @zip_code_extension end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
519 520 521 522 523 524 525 526 527 528 529 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 519 def update!(**args) @city = args[:city] if args.key?(:city) @city_state_zip_address_line = args[:city_state_zip_address_line] if args.key?(:city_state_zip_address_line) @firm = args[:firm] if args.key?(:firm) @first_address_line = args[:first_address_line] if args.key?(:first_address_line) @second_address_line = args[:second_address_line] if args.key?(:second_address_line) @state = args[:state] if args.key?(:state) @urbanization = args[:urbanization] if args.key?(:urbanization) @zip_code = args[:zip_code] if args.key?(:zip_code) @zip_code_extension = args[:zip_code_extension] if args.key?(:zip_code_extension) end |