Class: Google::Apis::DfareportingV5::UserIdentifier

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_infoGoogle::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_emailString

Hashed email address using SHA-256 hash function after normalization. Corresponds to the JSON property hashedEmail

Returns:

  • (String)


13555
13556
13557
# File 'lib/google/apis/dfareporting_v5/classes.rb', line 13555

def hashed_email
  @hashed_email
end

#hashed_phone_numberString

Hashed phone number using SHA-256 hash function after normalization (E164 standard). Corresponds to the JSON property hashedPhoneNumber

Returns:

  • (String)


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