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

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

Overview

Profile for a Gmail user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Profile

Returns a new instance of Profile



1216
1217
1218
# File 'generated/google/apis/gmail_v1/classes.rb', line 1216

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

Instance Attribute Details

#email_addressString

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

Returns:

  • (String)


1199
1200
1201
# File 'generated/google/apis/gmail_v1/classes.rb', line 1199

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)


1204
1205
1206
# File 'generated/google/apis/gmail_v1/classes.rb', line 1204

def history_id
  @history_id
end

#messages_totalFixnum

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

Returns:

  • (Fixnum)


1209
1210
1211
# File 'generated/google/apis/gmail_v1/classes.rb', line 1209

def messages_total
  @messages_total
end

#threads_totalFixnum

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

Returns:

  • (Fixnum)


1214
1215
1216
# File 'generated/google/apis/gmail_v1/classes.rb', line 1214

def threads_total
  @threads_total
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1221
1222
1223
1224
1225
1226
# File 'generated/google/apis/gmail_v1/classes.rb', line 1221

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