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.



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

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

Instance Attribute Details

#cityString

City name. Corresponds to the JSON property city

Returns:

  • (String)


472
473
474
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 472

def city
  @city
end

#city_state_zip_address_lineString

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

Returns:

  • (String)


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

#firmString

Firm name. Corresponds to the JSON property firm

Returns:

  • (String)


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

def firm
  @firm
end

#first_address_lineString

First address line. Corresponds to the JSON property firstAddressLine

Returns:

  • (String)


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

def first_address_line
  @first_address_line
end

#second_address_lineString

Second address line. Corresponds to the JSON property secondAddressLine

Returns:

  • (String)


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

def second_address_line
  @second_address_line
end

#stateString

2 letter state code. Corresponds to the JSON property state

Returns:

  • (String)


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

def state
  @state
end

#urbanizationString

Puerto Rican urbanization name. Corresponds to the JSON property urbanization

Returns:

  • (String)


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

def urbanization
  @urbanization
end

#zip_codeString

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

Returns:

  • (String)


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

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)


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