Class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::CivicinfoSchemaV2SimpleAddressType
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/civicinfo_v2/classes.rb,
lib/google/apis/civicinfo_v2/representations.rb,
lib/google/apis/civicinfo_v2/representations.rb
Overview
A simple representation of an address.
Instance Attribute Summary collapse
-
#address_line ⇒ Array<String>
Corresponds to the JSON property
addressLine. -
#city ⇒ String
The city or town for the address.
-
#line1 ⇒ String
The street name and number of this address.
-
#line2 ⇒ String
The second line the address, if needed.
-
#line3 ⇒ String
The third line of the address, if needed.
-
#location_name ⇒ String
The name of the location.
-
#state ⇒ String
The US two letter state abbreviation of the address.
-
#zip ⇒ String
The US Postal Zip Code of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CivicinfoSchemaV2SimpleAddressType
constructor
A new instance of CivicinfoSchemaV2SimpleAddressType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CivicinfoSchemaV2SimpleAddressType
Returns a new instance of CivicinfoSchemaV2SimpleAddressType.
1049 1050 1051 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1049 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_line ⇒ Array<String>
Corresponds to the JSON property addressLine
1012 1013 1014 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1012 def address_line @address_line end |
#city ⇒ String
The city or town for the address.
Corresponds to the JSON property city
1017 1018 1019 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1017 def city @city end |
#line1 ⇒ String
The street name and number of this address.
Corresponds to the JSON property line1
1022 1023 1024 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1022 def line1 @line1 end |
#line2 ⇒ String
The second line the address, if needed.
Corresponds to the JSON property line2
1027 1028 1029 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1027 def line2 @line2 end |
#line3 ⇒ String
The third line of the address, if needed.
Corresponds to the JSON property line3
1032 1033 1034 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1032 def line3 @line3 end |
#location_name ⇒ String
The name of the location.
Corresponds to the JSON property locationName
1037 1038 1039 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1037 def location_name @location_name end |
#state ⇒ String
The US two letter state abbreviation of the address.
Corresponds to the JSON property state
1042 1043 1044 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1042 def state @state end |
#zip ⇒ String
The US Postal Zip Code of the address.
Corresponds to the JSON property zip
1047 1048 1049 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1047 def zip @zip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 1054 def update!(**args) @address_line = args[:address_line] if args.key?(:address_line) @city = args[:city] if args.key?(:city) @line1 = args[:line1] if args.key?(:line1) @line2 = args[:line2] if args.key?(:line2) @line3 = args[:line3] if args.key?(:line3) @location_name = args[:location_name] if args.key?(:location_name) @state = args[:state] if args.key?(:state) @zip = args[:zip] if args.key?(:zip) end |