Class: WcoEmail::EmailFilter
- Inherits:
-
Object
- Object
- WcoEmail::EmailFilter
- Includes:
- Mongoid::Document, Mongoid::Timestamps
- Defined in:
- app/models/wco_email/email_filter.rb
Overview
2023-03-04 vp When I receive one.
Constant Summary collapse
- KIND_AUTORESPOND_TMPL =
'autorespond-template'
- KIND_AUTORESPOND_EACT =
'autorespond-email-action'
- KIND_REMOVE_TAG =
'remove-tag'
- KIND_ADD_TAG =
'add-tag'
- KIND_DESTROY_SCHS =
'destroy-schs'
- KIND_AUTORESPOND =
@deprecated, DO NOT USE!
'autorespond'
- KIND_DELETE =
@deprecated, use add-tag
'delete'
- KIND_SKIP_INBOX =
@deprecated, use remove-tag
'skip-inbox'
- KINDS =
[ nil, KIND_AUTORESPOND_TMPL, KIND_AUTORESPOND_EACT, KIND_ADD_TAG, KIND_REMOVE_TAG, KIND_DESTROY_SCHS]
- STATE_ACTIVE =
'active'
- STATE_INACTIVE =
'inactive'
- STATES =
[ STATE_ACTIVE, STATE_INACTIVE ]
Instance Method Summary collapse
Instance Method Details
#category ⇒ Object
40 41 42 |
# File 'app/models/wco_email/email_filter.rb', line 40 def category self.wp_term_id && WpTag.find( self.wp_term_id ) end |