Class: Google::Apis::GmailV1::Thread

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

A collection of messages representing a conversation.

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) ⇒ Thread

Returns a new instance of Thread.


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

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

Instance Attribute Details

#history_idString

The ID of the last history record that modified this thread. Corresponds to the JSON property historyId

Returns:

  • (String)

1182
1183
1184
# File 'generated/google/apis/gmail_v1/classes.rb', line 1182

def history_id
  @history_id
end

#idString

The unique ID of the thread. Corresponds to the JSON property id

Returns:

  • (String)

1187
1188
1189
# File 'generated/google/apis/gmail_v1/classes.rb', line 1187

def id
  @id
end

#messagesArray<Google::Apis::GmailV1::Message>

The list of messages in the thread. Corresponds to the JSON property messages

Returns:


1192
1193
1194
# File 'generated/google/apis/gmail_v1/classes.rb', line 1192

def messages
  @messages
end

#snippetString

A short part of the message text. Corresponds to the JSON property snippet

Returns:

  • (String)

1197
1198
1199
# File 'generated/google/apis/gmail_v1/classes.rb', line 1197

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


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

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