Class: Google::Apis::GmailV1::Profile

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

Overview

Profile for a Gmail user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Profile

Returns a new instance of Profile.



1501
1502
1503
# File 'lib/google/apis/gmail_v1/classes.rb', line 1501

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

Instance Attribute Details

#email_addressString

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

Returns:

  • (String)


1484
1485
1486
# File 'lib/google/apis/gmail_v1/classes.rb', line 1484

def email_address
  @email_address
end

#history_idFixnum

The ID of the mailbox's current history record. Corresponds to the JSON property historyId

Returns:

  • (Fixnum)


1489
1490
1491
# File 'lib/google/apis/gmail_v1/classes.rb', line 1489

def history_id
  @history_id
end

#messages_totalFixnum

The total number of messages in the mailbox. Corresponds to the JSON property messagesTotal

Returns:

  • (Fixnum)


1494
1495
1496
# File 'lib/google/apis/gmail_v1/classes.rb', line 1494

def messages_total
  @messages_total
end

#threads_totalFixnum

The total number of threads in the mailbox. Corresponds to the JSON property threadsTotal

Returns:

  • (Fixnum)


1499
1500
1501
# File 'lib/google/apis/gmail_v1/classes.rb', line 1499

def threads_total
  @threads_total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1506
1507
1508
1509
1510
1511
# File 'lib/google/apis/gmail_v1/classes.rb', line 1506

def update!(**args)
  @email_address = args[:email_address] if args.key?(:email_address)
  @history_id = args[:history_id] if args.key?(:history_id)
  @messages_total = args[:messages_total] if args.key?(:messages_total)
  @threads_total = args[:threads_total] if args.key?(:threads_total)
end