Class: Google::Apis::DfareportingV4::OfflineUserAddressInfo
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::OfflineUserAddressInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Identify a user by name and address.
Instance Attribute Summary collapse
-
#city ⇒ String
City of the address.
-
#country_code ⇒ String
2-letter country code in ISO-3166-1 alpha-2 of the user's address.
-
#hashed_first_name ⇒ String
First name of the user, which is hashed as SHA-256 after normalized (Lowercase all characters; Remove any extra spaces before, after, and in between).
-
#hashed_last_name ⇒ String
Last name of the user, which is hashed as SHA-256 after normalized (lower case only and no punctuation).
-
#hashed_street_address ⇒ String
The street address of the user hashed using SHA-256 hash function after normalization (lower case only).
-
#postal_code ⇒ String
Postal code of the user's address.
-
#state ⇒ String
State code of the address.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OfflineUserAddressInfo
constructor
A new instance of OfflineUserAddressInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OfflineUserAddressInfo
Returns a new instance of OfflineUserAddressInfo.
8263 8264 8265 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#city ⇒ String
City of the address.
Corresponds to the JSON property city
8228 8229 8230 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8228 def city @city end |
#country_code ⇒ String
2-letter country code in ISO-3166-1 alpha-2 of the user's address.
Corresponds to the JSON property countryCode
8233 8234 8235 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8233 def country_code @country_code end |
#hashed_first_name ⇒ String
First name of the user, which is hashed as SHA-256 after normalized (Lowercase
all characters; Remove any extra spaces before, after, and in between).
Corresponds to the JSON property hashedFirstName
8239 8240 8241 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8239 def hashed_first_name @hashed_first_name end |
#hashed_last_name ⇒ String
Last name of the user, which is hashed as SHA-256 after normalized (lower case
only and no punctuation).
Corresponds to the JSON property hashedLastName
8245 8246 8247 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8245 def hashed_last_name @hashed_last_name end |
#hashed_street_address ⇒ String
The street address of the user hashed using SHA-256 hash function after
normalization (lower case only).
Corresponds to the JSON property hashedStreetAddress
8251 8252 8253 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8251 def hashed_street_address @hashed_street_address end |
#postal_code ⇒ String
Postal code of the user's address.
Corresponds to the JSON property postalCode
8256 8257 8258 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8256 def postal_code @postal_code end |
#state ⇒ String
State code of the address.
Corresponds to the JSON property state
8261 8262 8263 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8261 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8268 8269 8270 8271 8272 8273 8274 8275 8276 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8268 def update!(**args) @city = args[:city] if args.key?(:city) @country_code = args[:country_code] if args.key?(:country_code) @hashed_first_name = args[:hashed_first_name] if args.key?(:hashed_first_name) @hashed_last_name = args[:hashed_last_name] if args.key?(:hashed_last_name) @hashed_street_address = args[:hashed_street_address] if args.key?(:hashed_street_address) @postal_code = args[:postal_code] if args.key?(:postal_code) @state = args[:state] if args.key?(:state) end |