Class: Insika::Safety::Moderator::Verdict
- Inherits:
-
Struct
- Object
- Struct
- Insika::Safety::Moderator::Verdict
- Defined in:
- lib/insika/safety/moderator.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#category ⇒ Object
Returns the value of attribute category.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action
19 20 21 |
# File 'lib/insika/safety/moderator.rb', line 19 def action @action end |
#category ⇒ Object
Returns the value of attribute category
19 20 21 |
# File 'lib/insika/safety/moderator.rb', line 19 def category @category end |
#reason ⇒ Object
Returns the value of attribute reason
19 20 21 |
# File 'lib/insika/safety/moderator.rb', line 19 def reason @reason end |
Instance Method Details
#block? ⇒ Boolean
20 |
# File 'lib/insika/safety/moderator.rb', line 20 def block? = %w[refuse escalate].include?(action.to_s) |