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.



511
512
513
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 511

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

Instance Attribute Details

#cityString

City name. Corresponds to the JSON property city

Returns:

  • (String)


469
470
471
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 469

def city
  @city
end

#city_state_zip_address_lineString

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

Returns:

  • (String)


474
475
476
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 474

def city_state_zip_address_line
  @city_state_zip_address_line
end

#firmString

Firm name. Corresponds to the JSON property firm

Returns:

  • (String)


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

def firm
  @firm
end

#first_address_lineString

First address line. Corresponds to the JSON property firstAddressLine

Returns:

  • (String)


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

def first_address_line
  @first_address_line
end

#second_address_lineString

Second address line. Corresponds to the JSON property secondAddressLine

Returns:

  • (String)


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

def second_address_line
  @second_address_line
end

#stateString

2 letter state code. Corresponds to the JSON property state

Returns:

  • (String)


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

def state
  @state
end

#urbanizationString

Puerto Rican urbanization name. Corresponds to the JSON property urbanization

Returns:

  • (String)


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

def urbanization
  @urbanization
end

#zip_codeString

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

Returns:

  • (String)


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

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)


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

def zip_code_extension
  @zip_code_extension
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
521
522
523
524
525
526
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 516

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