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.



3168
3169
3170
# File 'lib/google/apis/datamanager_v1/classes.rb', line 3168

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

Instance Attribute Details

#addressGoogle::Apis::DatamanagerV1::AddressInfo

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



3155
3156
3157
# File 'lib/google/apis/datamanager_v1/classes.rb', line 3155

def address
  @address
end

#email_addressString

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

Returns:

  • (String)


3160
3161
3162
# File 'lib/google/apis/datamanager_v1/classes.rb', line 3160

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)


3166
3167
3168
# File 'lib/google/apis/datamanager_v1/classes.rb', line 3166

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3173
3174
3175
3176
3177
# File 'lib/google/apis/datamanager_v1/classes.rb', line 3173

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