Class: Antispam::BlacklistResult
- Inherits:
-
Object
- Object
- Antispam::BlacklistResult
- Defined in:
- lib/antispam/results.rb
Instance Method Summary collapse
-
#initialize(results) ⇒ BlacklistResult
constructor
A new instance of BlacklistResult.
- #is_bad? ⇒ Boolean
Constructor Details
#initialize(results) ⇒ BlacklistResult
Returns a new instance of BlacklistResult.
11 12 13 |
# File 'lib/antispam/results.rb', line 11 def initialize(results) @results = results end |
Instance Method Details
#is_bad? ⇒ Boolean
14 15 16 |
# File 'lib/antispam/results.rb', line 14 def is_bad? @results.select{|x| x > 30}.present? end |