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.



2336
2337
2338
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2336

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

Instance Attribute Details

#addressGoogle::Apis::DatamanagerV1::AddressInfo

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



2323
2324
2325
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2323

def address
  @address
end

#email_addressString

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

Returns:

  • (String)


2328
2329
2330
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2328

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)


2334
2335
2336
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2334

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2341
2342
2343
2344
2345
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2341

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