Class: Google::Apis::CivicinfoV2::PostalAddress

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PostalAddress

Returns a new instance of PostalAddress



1354
1355
1356
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1354

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

Instance Attribute Details

#address_linesArray<String>

Corresponds to the JSON property addressLines

Returns:

  • (Array<String>)


1256
1257
1258
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1256

def address_lines
  @address_lines
end

#administrative_area_nameString

Corresponds to the JSON property administrativeAreaName

Returns:

  • (String)


1261
1262
1263
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1261

def administrative_area_name
  @administrative_area_name
end

#country_nameString

Corresponds to the JSON property countryName

Returns:

  • (String)


1266
1267
1268
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1266

def country_name
  @country_name
end

#country_name_codeString

Corresponds to the JSON property countryNameCode

Returns:

  • (String)


1271
1272
1273
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1271

def country_name_code
  @country_name_code
end

#dependent_locality_nameString

Corresponds to the JSON property dependentLocalityName

Returns:

  • (String)


1276
1277
1278
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1276

def dependent_locality_name
  @dependent_locality_name
end

#dependent_thoroughfare_nameString

Corresponds to the JSON property dependentThoroughfareName

Returns:

  • (String)


1281
1282
1283
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1281

def dependent_thoroughfare_name
  @dependent_thoroughfare_name
end

#firm_nameString

Corresponds to the JSON property firmName

Returns:

  • (String)


1286
1287
1288
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1286

def firm_name
  @firm_name
end

#is_disputedBoolean Also known as: is_disputed?

Corresponds to the JSON property isDisputed

Returns:

  • (Boolean)


1291
1292
1293
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1291

def is_disputed
  @is_disputed
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


1297
1298
1299
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1297

def language_code
  @language_code
end

#locality_nameString

Corresponds to the JSON property localityName

Returns:

  • (String)


1302
1303
1304
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1302

def locality_name
  @locality_name
end

#post_box_numberString

Corresponds to the JSON property postBoxNumber

Returns:

  • (String)


1307
1308
1309
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1307

def post_box_number
  @post_box_number
end

#postal_code_numberString

Corresponds to the JSON property postalCodeNumber

Returns:

  • (String)


1312
1313
1314
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1312

def postal_code_number
  @postal_code_number
end

#postal_code_number_extensionString

Corresponds to the JSON property postalCodeNumberExtension

Returns:

  • (String)


1317
1318
1319
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1317

def postal_code_number_extension
  @postal_code_number_extension
end

#premise_nameString

Corresponds to the JSON property premiseName

Returns:

  • (String)


1322
1323
1324
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1322

def premise_name
  @premise_name
end

#recipient_nameString

Corresponds to the JSON property recipientName

Returns:

  • (String)


1327
1328
1329
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1327

def recipient_name
  @recipient_name
end

#sorting_codeString

Corresponds to the JSON property sortingCode

Returns:

  • (String)


1332
1333
1334
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1332

def sorting_code
  @sorting_code
end

#sub_administrative_area_nameString

Corresponds to the JSON property subAdministrativeAreaName

Returns:

  • (String)


1337
1338
1339
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1337

def sub_administrative_area_name
  @sub_administrative_area_name
end

#sub_premise_nameString

Corresponds to the JSON property subPremiseName

Returns:

  • (String)


1342
1343
1344
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1342

def sub_premise_name
  @sub_premise_name
end

#thoroughfare_nameString

Corresponds to the JSON property thoroughfareName

Returns:

  • (String)


1347
1348
1349
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1347

def thoroughfare_name
  @thoroughfare_name
end

#thoroughfare_numberString

Corresponds to the JSON property thoroughfareNumber

Returns:

  • (String)


1352
1353
1354
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1352

def thoroughfare_number
  @thoroughfare_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1359

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