Class: Google::Apis::DfareportingV5::UserIdentifier
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV5::UserIdentifier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v5/classes.rb,
lib/google/apis/dfareporting_v5/representations.rb,
lib/google/apis/dfareporting_v5/representations.rb
Overview
User identifying information. Exactly one type of identifier must be specified.
Instance Attribute Summary collapse
-
#address_info ⇒ Google::Apis::DfareportingV5::OfflineUserAddressInfo
Identify a user by name and address.
-
#hashed_email ⇒ String
Hashed email address using SHA-256 hash function after normalization.
-
#hashed_phone_number ⇒ String
Hashed phone number using SHA-256 hash function after normalization (E164 standard).
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserIdentifier
constructor
A new instance of UserIdentifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UserIdentifier
Returns a new instance of UserIdentifier.
13563 13564 13565 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13563 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address_info ⇒ Google::Apis::DfareportingV5::OfflineUserAddressInfo
Identify a user by name and address.
Corresponds to the JSON property addressInfo
13550 13551 13552 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13550 def address_info @address_info end |
#hashed_email ⇒ String
Hashed email address using SHA-256 hash function after normalization.
Corresponds to the JSON property hashedEmail
13555 13556 13557 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13555 def hashed_email @hashed_email end |
#hashed_phone_number ⇒ String
Hashed phone number using SHA-256 hash function after normalization (E164
standard).
Corresponds to the JSON property hashedPhoneNumber
13561 13562 13563 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13561 def hashed_phone_number @hashed_phone_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13568 13569 13570 13571 13572 |
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13568 def update!(**args) @address_info = args[:address_info] if args.key?(:address_info) @hashed_email = args[:hashed_email] if args.key?(:hashed_email) @hashed_phone_number = args[:hashed_phone_number] if args.key?(:hashed_phone_number) end |