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
22 23 24 |
# File 'lib/insika/safety/moderator.rb', line 22 def action @action end |
#category ⇒ Object
Returns the value of attribute category
22 23 24 |
# File 'lib/insika/safety/moderator.rb', line 22 def category @category end |
#reason ⇒ Object
Returns the value of attribute reason
22 23 24 |
# File 'lib/insika/safety/moderator.rb', line 22 def reason @reason end |
Instance Method Details
#block? ⇒ Boolean
23 |
# File 'lib/insika/safety/moderator.rb', line 23 def block? = %w[refuse escalate].include?(action.to_s) |
#unavailable? ⇒ Boolean
24 |
# File 'lib/insika/safety/moderator.rb', line 24 def unavailable? = action.to_s == "unavailable" |