Class: Antispam::SpamcheckResult
- Inherits:
-
Object
- Object
- Antispam::SpamcheckResult
- Defined in:
- lib/antispam/results.rb
Instance Method Summary collapse
-
#initialize(results) ⇒ SpamcheckResult
constructor
A new instance of SpamcheckResult.
- #is_spam? ⇒ Boolean
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
6 7 8 |
# File 'lib/antispam/results.rb', line 6 def is_spam? @results.select{|x| x > 0}.present? end |