Class: RubySpamAssassin::SpamResult
- Inherits:
-
Object
- Object
- RubySpamAssassin::SpamResult
- Defined in:
- lib/RubySpamAssassin.rb
Instance Attribute Summary collapse
-
#content_length ⇒ Object
Returns the value of attribute content_length.
-
#report ⇒ Object
Returns the value of attribute report.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
-
#response_message ⇒ Object
Returns the value of attribute response_message.
-
#response_version ⇒ Object
Returns the value of attribute response_version.
-
#score ⇒ Object
Returns the value of attribute score.
-
#spam ⇒ Object
Returns the value of attribute spam.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Method Summary collapse
-
#spam? ⇒ Boolean
returns true if the message was spam, otherwise false.
Instance Attribute Details
#content_length ⇒ Object
Returns the value of attribute content_length.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def content_length @content_length end |
#report ⇒ Object
Returns the value of attribute report.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def report @report end |
#response_code ⇒ Object
Returns the value of attribute response_code.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def response_code @response_code end |
#response_message ⇒ Object
Returns the value of attribute response_message.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def @response_message end |
#response_version ⇒ Object
Returns the value of attribute response_version.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def response_version @response_version end |
#score ⇒ Object
Returns the value of attribute score.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def score @score end |
#spam ⇒ Object
Returns the value of attribute spam.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def spam @spam end |
#tags ⇒ Object
Returns the value of attribute tags.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def @tags end |
#threshold ⇒ Object
Returns the value of attribute threshold.
4 5 6 |
# File 'lib/RubySpamAssassin.rb', line 4 def threshold @threshold end |
Instance Method Details
#spam? ⇒ Boolean
returns true if the message was spam, otherwise false
15 16 17 |
# File 'lib/RubySpamAssassin.rb', line 15 def spam? (@spam == "True" || @spam == "Yes") ? true : false end |