Class: Google::Apis::DatamanagerV1::UserIdentifier

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datamanager_v1/classes.rb,
lib/google/apis/datamanager_v1/representations.rb,
lib/google/apis/datamanager_v1/representations.rb

Overview

A single identifier for the user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserIdentifier

Returns a new instance of UserIdentifier.



2567
2568
2569
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2567

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

Instance Attribute Details

#addressGoogle::Apis::DatamanagerV1::AddressInfo

Address information for the user. Corresponds to the JSON property address



2554
2555
2556
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2554

def address
  @address
end

#email_addressString

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

Returns:

  • (String)


2559
2560
2561
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2559

def email_address
  @email_address
end

#phone_numberString

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

Returns:

  • (String)


2565
2566
2567
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2565

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2572
2573
2574
2575
2576
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2572

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @email_address = args[:email_address] if args.key?(:email_address)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end