Class: Google::Apis::DfareportingV4::UserIdentifier

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

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.



12438
12439
12440
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12438

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

Instance Attribute Details

#address_infoGoogle::Apis::DfareportingV4::OfflineUserAddressInfo

Identify a user by name and address. Corresponds to the JSON property addressInfo



12425
12426
12427
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12425

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)


12430
12431
12432
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12430

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)


12436
12437
12438
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12436

def hashed_phone_number
  @hashed_phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12443
12444
12445
12446
12447
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12443

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