Class: DespamilatorFilter::GtubsTestFilter

Inherits:
Despamilator::Filter show all
Defined in:
lib/despamilator/filter/gtubs_test_filter.rb

Instance Method Summary collapse

Instance Method Details

#descriptionObject



11
12
13
# File 'lib/despamilator/filter/gtubs_test_filter.rb', line 11

def description
  'Detects the special test string (Despamilator.gtubs_test_string) and assigns a big score.'
end

#nameObject



7
8
9
# File 'lib/despamilator/filter/gtubs_test_filter.rb', line 7

def name
  'GTubs Test Filter'
end

#parse(subject) ⇒ Object



15
16
17
# File 'lib/despamilator/filter/gtubs_test_filter.rb', line 15

def parse subject
  subject.register_match!({:score => 100, :filter => self}) if subject.text == Despamilator.gtubs_test_string
end