Class: Google::Apis::GmailV1::Filter
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GmailV1::Filter
 
- 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
Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.
Instance Attribute Summary collapse
- 
  
    
      #action  ⇒ Google::Apis::GmailV1::FilterAction 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A set of actions to perform on a message. 
- 
  
    
      #criteria  ⇒ Google::Apis::GmailV1::FilterCriteria 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Message matching criteria. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The server assigned ID of the filter. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Filter 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Filter. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter
| 153 154 155 | # File 'generated/google/apis/gmail_v1/classes.rb', line 153 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#action ⇒ Google::Apis::GmailV1::FilterAction
A set of actions to perform on a message.
Corresponds to the JSON property action
| 141 142 143 | # File 'generated/google/apis/gmail_v1/classes.rb', line 141 def action @action end | 
#criteria ⇒ Google::Apis::GmailV1::FilterCriteria
Message matching criteria.
Corresponds to the JSON property criteria
| 146 147 148 | # File 'generated/google/apis/gmail_v1/classes.rb', line 146 def criteria @criteria end | 
#id ⇒ String
The server assigned ID of the filter.
Corresponds to the JSON property id
| 151 152 153 | # File 'generated/google/apis/gmail_v1/classes.rb', line 151 def id @id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 158 159 160 161 162 | # File 'generated/google/apis/gmail_v1/classes.rb', line 158 def update!(**args) @action = args[:action] if args.key?(:action) @criteria = args[:criteria] if args.key?(:criteria) @id = args[:id] if args.key?(:id) end |