Class: Antispam::SpamcheckResult

Inherits:
Object
  • Object
show all
Defined in:
lib/antispam/results.rb

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ SpamcheckResult

Returns a new instance of SpamcheckResult.



3
4
5
# File 'lib/antispam/results.rb', line 3

def initialize(results)
  @results = results
end

Instance Method Details

#is_spam?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/antispam/results.rb', line 6

def is_spam?
  @results.select{|x| x > 0}.present?
end