Class: Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1UspsAddress

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsAddressvalidationV1UspsAddress

Returns a new instance of GoogleMapsAddressvalidationV1UspsAddress.



520
521
522
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cityString

City name. Corresponds to the JSON property city

Returns:

  • (String)


478
479
480
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 478

def city
  @city
end

#city_state_zip_address_lineString

City + state + postal code. Corresponds to the JSON property cityStateZipAddressLine

Returns:

  • (String)


483
484
485
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 483

def city_state_zip_address_line
  @city_state_zip_address_line
end

#firmString

Firm name. Corresponds to the JSON property firm

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 488

def firm
  @firm
end

#first_address_lineString

First address line. Corresponds to the JSON property firstAddressLine

Returns:

  • (String)


493
494
495
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 493

def first_address_line
  @first_address_line
end

#second_address_lineString

Second address line. Corresponds to the JSON property secondAddressLine

Returns:

  • (String)


498
499
500
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 498

def second_address_line
  @second_address_line
end

#stateString

2 letter state code. Corresponds to the JSON property state

Returns:

  • (String)


503
504
505
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 503

def state
  @state
end

#urbanizationString

Puerto Rican urbanization name. Corresponds to the JSON property urbanization

Returns:

  • (String)


508
509
510
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 508

def urbanization
  @urbanization
end

#zip_codeString

Postal code e.g. 10009. Corresponds to the JSON property zipCode

Returns:

  • (String)


513
514
515
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 513

def zip_code
  @zip_code
end

#zip_code_extensionString

4-digit postal code extension e.g. 5023. Corresponds to the JSON property zipCodeExtension

Returns:

  • (String)


518
519
520
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 518

def zip_code_extension
  @zip_code_extension
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



525
526
527
528
529
530
531
532
533
534
535
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 525

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