class Google::Apis::GmailV1::Thread

A collection of messages representing a conversation.

Attributes

history_id[RW]

The ID of the last history record that modified this thread. Corresponds to the JSON property `historyId` @return [Fixnum]

id[RW]

The unique ID of the thread. Corresponds to the JSON property `id` @return [String]

messages[RW]

The list of messages in the thread. Corresponds to the JSON property `messages` @return [Array<Google::Apis::GmailV1::Message>]

snippet[RW]

A short part of the message text. Corresponds to the JSON property `snippet` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/gmail_v1/classes.rb, line 1460
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gmail_v1/classes.rb, line 1465
def update!(**args)
  @history_id = args[:history_id] if args.key?(:history_id)
  @id = args[:id] if args.key?(:id)
  @messages = args[:messages] if args.key?(:messages)
  @snippet = args[:snippet] if args.key?(:snippet)
end