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.
2336 2337 2338 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2336 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
2323 2324 2325 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2323 def address @address end |
#email_address ⇒ String
Hashed email address using SHA-256 hash function after normalization.
Corresponds to the JSON property emailAddress
2328 2329 2330 |
# File 'lib/google/apis/datamanager_v1/classes.rb', line 2328 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
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 |