Class: Google::Apis::GmailV1::Thread
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GmailV1::Thread
 
- 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
- 
  
    
      #history_id  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the last history record that modified this thread. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique ID of the thread. 
- 
  
    
      #messages  ⇒ Array<Google::Apis::GmailV1::Message> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of messages in the thread. 
- 
  
    
      #snippet  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A short part of the message text. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Thread 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Thread. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Thread
Returns a new instance of Thread
| 1365 1366 1367 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1365 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#history_id ⇒ Fixnum
The ID of the last history record that modified this thread.
Corresponds to the JSON property historyId
| 1348 1349 1350 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1348 def history_id @history_id end | 
#id ⇒ String
The unique ID of the thread.
Corresponds to the JSON property id
| 1353 1354 1355 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1353 def id @id end | 
#messages ⇒ Array<Google::Apis::GmailV1::Message>
The list of messages in the thread.
Corresponds to the JSON property messages
| 1358 1359 1360 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1358 def @messages end | 
#snippet ⇒ String
A short part of the message text.
Corresponds to the JSON property snippet
| 1363 1364 1365 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1363 def snippet @snippet end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1370 1371 1372 1373 1374 1375 | # File 'generated/google/apis/gmail_v1/classes.rb', line 1370 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 |