Class: EmSpamc::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/em_spamc/result.rb

Constant Summary collapse

ATTRIBUTES =

Constants ============================================================

[
  :headers,
  :threshold,
  :tags,
  :report
].freeze

Instance Method Summary collapse

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

Returns:

  • (Boolean)


27
28
29
# File 'lib/em_spamc/result.rb', line 27

def spam?
  headers and headers[:spam]
end