Class: Google::Apis::CivicinfoV2::SimpleAddressType
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::SimpleAddressType
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb
Overview
A simple representation of an address.
Instance Attribute Summary collapse
-
#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) ⇒ SimpleAddressType
constructor
A new instance of SimpleAddressType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SimpleAddressType
Returns a new instance of SimpleAddressType.
1008 1009 1010 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1008 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city ⇒ String
The city or town for the address.
Corresponds to the JSON property city
976 977 978 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 976 def city @city end |
#line1 ⇒ String
The street name and number of this address.
Corresponds to the JSON property line1
981 982 983 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 981 def line1 @line1 end |
#line2 ⇒ String
The second line the address, if needed.
Corresponds to the JSON property line2
986 987 988 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 986 def line2 @line2 end |
#line3 ⇒ String
The third line of the address, if needed.
Corresponds to the JSON property line3
991 992 993 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 991 def line3 @line3 end |
#location_name ⇒ String
The name of the location.
Corresponds to the JSON property locationName
996 997 998 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 996 def location_name @location_name end |
#state ⇒ String
The US two letter state abbreviation of the address.
Corresponds to the JSON property state
1001 1002 1003 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1001 def state @state end |
#zip ⇒ String
The US Postal Zip Code of the address.
Corresponds to the JSON property zip
1006 1007 1008 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1006 def zip @zip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1013 1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1013 def update!(**args) @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 |