Class: Antispam::BlacklistResult

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

Instance Method Summary collapse

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

Returns:

  • (Boolean)


14
15
16
# File 'lib/antispam/results.rb', line 14

def is_bad?
  @results.select{|x| x > 30}.present?
end