Class: Google::Apis::KeepV1::User

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

Overview

Describes a single user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



452
453
454
# File 'lib/google/apis/keep_v1/classes.rb', line 452

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

Instance Attribute Details

#emailString

The user's email. Corresponds to the JSON property email

Returns:

  • (String)


450
451
452
# File 'lib/google/apis/keep_v1/classes.rb', line 450

def email
  @email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



457
458
459
# File 'lib/google/apis/keep_v1/classes.rb', line 457

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