Class: Google::Apis::DatamanagerV1::UserIdentifier
- Inherits:
-
Object
- Object
- Google::Apis::DatamanagerV1::UserIdentifier
- 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
-
#address ⇒ Google::Apis::DatamanagerV1::AddressInfo
Address information for the user.
-
#email_address ⇒ String
Hashed email address using SHA-256 hash function after normalization.
-
#phone_number ⇒ String
Hashed phone number using SHA-256 hash function after normalization (E164 standard).
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserIdentifier
constructor
A new instance of UserIdentifier.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#address ⇒ Google::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_address ⇒ String
Hashed email address using SHA-256 hash function after normalization.
Corresponds to the JSON property emailAddress
2559 2560 2561 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2559 def email_address @email_address end |
#phone_number ⇒ String
Hashed phone number using SHA-256 hash function after normalization (E164
standard).
Corresponds to the JSON property phoneNumber
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 |