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



1128
1129
1130
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1128

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

Instance Attribute Details

#address_linesArray<String>

Corresponds to the JSON property addressLines

Returns:

  • (Array<String>)


975
976
977
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 975

def address_lines
  @address_lines
end

#administrative_area_nameString

Corresponds to the JSON property administrativeAreaName

Returns:

  • (String)


980
981
982
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 980

def administrative_area_name
  @administrative_area_name
end

#country_nameString

Corresponds to the JSON property countryName

Returns:

  • (String)


985
986
987
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 985

def country_name
  @country_name
end

#country_name_codeString

Corresponds to the JSON property countryNameCode

Returns:

  • (String)


990
991
992
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 990

def country_name_code
  @country_name_code
end

#dependent_locality_nameString

Corresponds to the JSON property dependentLocalityName

Returns:

  • (String)


995
996
997
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 995

def dependent_locality_name
  @dependent_locality_name
end

#dependent_thoroughfare_leading_typeString

Corresponds to the JSON property dependentThoroughfareLeadingType

Returns:

  • (String)


1000
1001
1002
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1000

def dependent_thoroughfare_leading_type
  @dependent_thoroughfare_leading_type
end

#dependent_thoroughfare_nameString

Corresponds to the JSON property dependentThoroughfareName

Returns:

  • (String)


1005
1006
1007
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1005

def dependent_thoroughfare_name
  @dependent_thoroughfare_name
end

#dependent_thoroughfare_post_directionString

Corresponds to the JSON property dependentThoroughfarePostDirection

Returns:

  • (String)


1010
1011
1012
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1010

def dependent_thoroughfare_post_direction
  @dependent_thoroughfare_post_direction
end

#dependent_thoroughfare_pre_directionString

Corresponds to the JSON property dependentThoroughfarePreDirection

Returns:

  • (String)


1015
1016
1017
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1015

def dependent_thoroughfare_pre_direction
  @dependent_thoroughfare_pre_direction
end

#dependent_thoroughfare_trailing_typeString

Corresponds to the JSON property dependentThoroughfareTrailingType

Returns:

  • (String)


1020
1021
1022
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1020

def dependent_thoroughfare_trailing_type
  @dependent_thoroughfare_trailing_type
end

#dependent_thoroughfares_connectorString

Corresponds to the JSON property dependentThoroughfaresConnector

Returns:

  • (String)


1025
1026
1027
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1025

def dependent_thoroughfares_connector
  @dependent_thoroughfares_connector
end

#dependent_thoroughfares_indicatorString

Corresponds to the JSON property dependentThoroughfaresIndicator

Returns:

  • (String)


1030
1031
1032
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1030

def dependent_thoroughfares_indicator
  @dependent_thoroughfares_indicator
end

#dependent_thoroughfares_typeString

Corresponds to the JSON property dependentThoroughfaresType

Returns:

  • (String)


1035
1036
1037
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1035

def dependent_thoroughfares_type
  @dependent_thoroughfares_type
end

#firm_nameString

Corresponds to the JSON property firmName

Returns:

  • (String)


1040
1041
1042
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1040

def firm_name
  @firm_name
end

#is_disputedBoolean Also known as: is_disputed?

Corresponds to the JSON property isDisputed

Returns:

  • (Boolean)


1045
1046
1047
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1045

def is_disputed
  @is_disputed
end

#language_codeString

Corresponds to the JSON property languageCode

Returns:

  • (String)


1051
1052
1053
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1051

def language_code
  @language_code
end

#locality_nameString

Corresponds to the JSON property localityName

Returns:

  • (String)


1056
1057
1058
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1056

def locality_name
  @locality_name
end

#post_box_numberString

Corresponds to the JSON property postBoxNumber

Returns:

  • (String)


1061
1062
1063
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1061

def post_box_number
  @post_box_number
end

#postal_code_numberString

Corresponds to the JSON property postalCodeNumber

Returns:

  • (String)


1066
1067
1068
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1066

def postal_code_number
  @postal_code_number
end

#postal_code_number_extensionString

Corresponds to the JSON property postalCodeNumberExtension

Returns:

  • (String)


1071
1072
1073
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1071

def postal_code_number_extension
  @postal_code_number_extension
end

#premise_nameString

Corresponds to the JSON property premiseName

Returns:

  • (String)


1076
1077
1078
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1076

def premise_name
  @premise_name
end

#recipient_nameString

Corresponds to the JSON property recipientName

Returns:

  • (String)


1081
1082
1083
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1081

def recipient_name
  @recipient_name
end

#sorting_codeString

Corresponds to the JSON property sortingCode

Returns:

  • (String)


1086
1087
1088
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1086

def sorting_code
  @sorting_code
end

#sub_administrative_area_nameString

Corresponds to the JSON property subAdministrativeAreaName

Returns:

  • (String)


1091
1092
1093
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1091

def sub_administrative_area_name
  @sub_administrative_area_name
end

#sub_premise_nameString

Corresponds to the JSON property subPremiseName

Returns:

  • (String)


1096
1097
1098
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1096

def sub_premise_name
  @sub_premise_name
end

#thoroughfare_leading_typeString

Corresponds to the JSON property thoroughfareLeadingType

Returns:

  • (String)


1101
1102
1103
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1101

def thoroughfare_leading_type
  @thoroughfare_leading_type
end

#thoroughfare_nameString

Corresponds to the JSON property thoroughfareName

Returns:

  • (String)


1106
1107
1108
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1106

def thoroughfare_name
  @thoroughfare_name
end

#thoroughfare_numberString

Corresponds to the JSON property thoroughfareNumber

Returns:

  • (String)


1111
1112
1113
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1111

def thoroughfare_number
  @thoroughfare_number
end

#thoroughfare_post_directionString

Corresponds to the JSON property thoroughfarePostDirection

Returns:

  • (String)


1116
1117
1118
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1116

def thoroughfare_post_direction
  @thoroughfare_post_direction
end

#thoroughfare_pre_directionString

Corresponds to the JSON property thoroughfarePreDirection

Returns:

  • (String)


1121
1122
1123
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1121

def thoroughfare_pre_direction
  @thoroughfare_pre_direction
end

#thoroughfare_trailing_typeString

Corresponds to the JSON property thoroughfareTrailingType

Returns:

  • (String)


1126
1127
1128
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1126

def thoroughfare_trailing_type
  @thoroughfare_trailing_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1133

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_leading_type = args[:dependent_thoroughfare_leading_type] if args.key?(:dependent_thoroughfare_leading_type)
  @dependent_thoroughfare_name = args[:dependent_thoroughfare_name] if args.key?(:dependent_thoroughfare_name)
  @dependent_thoroughfare_post_direction = args[:dependent_thoroughfare_post_direction] if args.key?(:dependent_thoroughfare_post_direction)
  @dependent_thoroughfare_pre_direction = args[:dependent_thoroughfare_pre_direction] if args.key?(:dependent_thoroughfare_pre_direction)
  @dependent_thoroughfare_trailing_type = args[:dependent_thoroughfare_trailing_type] if args.key?(:dependent_thoroughfare_trailing_type)
  @dependent_thoroughfares_connector = args[:dependent_thoroughfares_connector] if args.key?(:dependent_thoroughfares_connector)
  @dependent_thoroughfares_indicator = args[:dependent_thoroughfares_indicator] if args.key?(:dependent_thoroughfares_indicator)
  @dependent_thoroughfares_type = args[:dependent_thoroughfares_type] if args.key?(:dependent_thoroughfares_type)
  @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_leading_type = args[:thoroughfare_leading_type] if args.key?(:thoroughfare_leading_type)
  @thoroughfare_name = args[:thoroughfare_name] if args.key?(:thoroughfare_name)
  @thoroughfare_number = args[:thoroughfare_number] if args.key?(:thoroughfare_number)
  @thoroughfare_post_direction = args[:thoroughfare_post_direction] if args.key?(:thoroughfare_post_direction)
  @thoroughfare_pre_direction = args[:thoroughfare_pre_direction] if args.key?(:thoroughfare_pre_direction)
  @thoroughfare_trailing_type = args[:thoroughfare_trailing_type] if args.key?(:thoroughfare_trailing_type)
end