Class: Google::Apis::CivicinfoV2::PostalAddress
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::PostalAddress
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb
Instance Attribute Summary collapse
-
#address_lines ⇒ Array<String>
Corresponds to the JSON property
addressLines
. -
#administrative_area_name ⇒ String
Corresponds to the JSON property
administrativeAreaName
. -
#country_name ⇒ String
Corresponds to the JSON property
countryName
. -
#country_name_code ⇒ String
Corresponds to the JSON property
countryNameCode
. -
#dependent_locality_name ⇒ String
Corresponds to the JSON property
dependentLocalityName
. -
#dependent_thoroughfare_name ⇒ String
Corresponds to the JSON property
dependentThoroughfareName
. -
#firm_name ⇒ String
Corresponds to the JSON property
firmName
. -
#is_disputed ⇒ Boolean
(also: #is_disputed?)
Corresponds to the JSON property
isDisputed
. -
#language_code ⇒ String
Corresponds to the JSON property
languageCode
. -
#locality_name ⇒ String
Corresponds to the JSON property
localityName
. -
#post_box_number ⇒ String
Corresponds to the JSON property
postBoxNumber
. -
#postal_code_number ⇒ String
Corresponds to the JSON property
postalCodeNumber
. -
#postal_code_number_extension ⇒ String
Corresponds to the JSON property
postalCodeNumberExtension
. -
#premise_name ⇒ String
Corresponds to the JSON property
premiseName
. -
#recipient_name ⇒ String
Corresponds to the JSON property
recipientName
. -
#sorting_code ⇒ String
Corresponds to the JSON property
sortingCode
. -
#sub_administrative_area_name ⇒ String
Corresponds to the JSON property
subAdministrativeAreaName
. -
#sub_premise_name ⇒ String
Corresponds to the JSON property
subPremiseName
. -
#thoroughfare_name ⇒ String
Corresponds to the JSON property
thoroughfareName
. -
#thoroughfare_number ⇒ String
Corresponds to the JSON property
thoroughfareNumber
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PostalAddress
constructor
A new instance of PostalAddress.
-
#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) ⇒ PostalAddress
Returns a new instance of PostalAddress.
1198 1199 1200 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1198 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_lines ⇒ Array<String>
Corresponds to the JSON property addressLines
1100 1101 1102 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1100 def address_lines @address_lines end |
#administrative_area_name ⇒ String
Corresponds to the JSON property administrativeAreaName
1105 1106 1107 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1105 def administrative_area_name @administrative_area_name end |
#country_name ⇒ String
Corresponds to the JSON property countryName
1110 1111 1112 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1110 def country_name @country_name end |
#country_name_code ⇒ String
Corresponds to the JSON property countryNameCode
1115 1116 1117 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1115 def country_name_code @country_name_code end |
#dependent_locality_name ⇒ String
Corresponds to the JSON property dependentLocalityName
1120 1121 1122 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1120 def dependent_locality_name @dependent_locality_name end |
#dependent_thoroughfare_name ⇒ String
Corresponds to the JSON property dependentThoroughfareName
1125 1126 1127 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1125 def dependent_thoroughfare_name @dependent_thoroughfare_name end |
#firm_name ⇒ String
Corresponds to the JSON property firmName
1130 1131 1132 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1130 def firm_name @firm_name end |
#is_disputed ⇒ Boolean Also known as: is_disputed?
Corresponds to the JSON property isDisputed
1135 1136 1137 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1135 def is_disputed @is_disputed end |
#language_code ⇒ String
Corresponds to the JSON property languageCode
1141 1142 1143 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1141 def language_code @language_code end |
#locality_name ⇒ String
Corresponds to the JSON property localityName
1146 1147 1148 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1146 def locality_name @locality_name end |
#post_box_number ⇒ String
Corresponds to the JSON property postBoxNumber
1151 1152 1153 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1151 def post_box_number @post_box_number end |
#postal_code_number ⇒ String
Corresponds to the JSON property postalCodeNumber
1156 1157 1158 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1156 def postal_code_number @postal_code_number end |
#postal_code_number_extension ⇒ String
Corresponds to the JSON property postalCodeNumberExtension
1161 1162 1163 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1161 def postal_code_number_extension @postal_code_number_extension end |
#premise_name ⇒ String
Corresponds to the JSON property premiseName
1166 1167 1168 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1166 def premise_name @premise_name end |
#recipient_name ⇒ String
Corresponds to the JSON property recipientName
1171 1172 1173 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1171 def recipient_name @recipient_name end |
#sorting_code ⇒ String
Corresponds to the JSON property sortingCode
1176 1177 1178 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1176 def sorting_code @sorting_code end |
#sub_administrative_area_name ⇒ String
Corresponds to the JSON property subAdministrativeAreaName
1181 1182 1183 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1181 def sub_administrative_area_name @sub_administrative_area_name end |
#sub_premise_name ⇒ String
Corresponds to the JSON property subPremiseName
1186 1187 1188 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1186 def sub_premise_name @sub_premise_name end |
#thoroughfare_name ⇒ String
Corresponds to the JSON property thoroughfareName
1191 1192 1193 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1191 def thoroughfare_name @thoroughfare_name end |
#thoroughfare_number ⇒ String
Corresponds to the JSON property thoroughfareNumber
1196 1197 1198 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1196 def thoroughfare_number @thoroughfare_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1203 def update!(**args) @address_lines = args[:address_lines] if args.key?(:address_lines) @administrative_area_name = args[:administrative_area_name] if args.key?(:administrative_area_name) @country_name = args[:country_name] if args.key?(:country_name) @country_name_code = args[:country_name_code] if args.key?(:country_name_code) @dependent_locality_name = args[:dependent_locality_name] if args.key?(:dependent_locality_name) @dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name) @firm_name = args[:firm_name] if args.key?(:firm_name) @is_disputed = args[:is_disputed] if args.key?(:is_disputed) @language_code = args[:language_code] if args.key?(:language_code) @locality_name = args[:locality_name] if args.key?(:locality_name) @post_box_number = args[:post_box_number] if args.key?(:post_box_number) @postal_code_number = args[:postal_code_number] if args.key?(:postal_code_number) @postal_code_number_extension = args[:postal_code_number_extension] if args.key?(:postal_code_number_extension) @premise_name = args[:premise_name] if args.key?(:premise_name) @recipient_name = args[:recipient_name] if args.key?(:recipient_name) @sorting_code = args[:sorting_code] if args.key?(:sorting_code) @sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name) @sub_premise_name = args[:sub_premise_name] if args.key?(:sub_premise_name) @thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name) @thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number) end |