Class: EmSpamc::Result
- Inherits:
-
Object
- Object
- EmSpamc::Result
- Defined in:
- lib/em_spamc/result.rb
Constant Summary collapse
- ATTRIBUTES =
Constants ============================================================
[ :headers, :threshold, :tags, :report ].freeze
Instance Method Summary collapse
-
#initialize(attributes = nil) ⇒ Result
constructor
Instance Methods =====================================================.
- #spam? ⇒ Boolean
Constructor Details
#initialize(attributes = nil) ⇒ Result
Instance Methods =====================================================
13 14 15 |
# File 'lib/em_spamc/result.rb', line 13 def initialize(attributes = nil) @attributes = attributes || { } end |
Instance Method Details
#spam? ⇒ Boolean
27 28 29 |
# File 'lib/em_spamc/result.rb', line 27 def spam? headers and headers[:spam] end |