Class: Insika::Safety::Moderator::Verdict

Inherits:
Struct
  • Object
show all
Defined in:
lib/insika/safety/moderator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



19
20
21
# File 'lib/insika/safety/moderator.rb', line 19

def action
  @action
end

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



19
20
21
# File 'lib/insika/safety/moderator.rb', line 19

def category
  @category
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



19
20
21
# File 'lib/insika/safety/moderator.rb', line 19

def reason
  @reason
end

Instance Method Details

#block?Boolean

Returns:

  • (Boolean)


20
# File 'lib/insika/safety/moderator.rb', line 20

def block? = %w[refuse escalate].include?(action.to_s)