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

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

A collection of messages representing a conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thread

Returns a new instance of Thread.



1733
1734
1735
# File 'lib/google/apis/gmail_v1/classes.rb', line 1733

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

Instance Attribute Details

#history_idFixnum

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

Returns:

  • (Fixnum)


1716
1717
1718
# File 'lib/google/apis/gmail_v1/classes.rb', line 1716

def history_id
  @history_id
end

#idString

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

Returns:

  • (String)


1721
1722
1723
# File 'lib/google/apis/gmail_v1/classes.rb', line 1721

def id
  @id
end

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

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

Returns:



1726
1727
1728
# File 'lib/google/apis/gmail_v1/classes.rb', line 1726

def messages
  @messages
end

#snippetString

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

Returns:

  • (String)


1731
1732
1733
# File 'lib/google/apis/gmail_v1/classes.rb', line 1731

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1738
1739
1740
1741
1742
1743
# File 'lib/google/apis/gmail_v1/classes.rb', line 1738

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