Method: PxModule::PerimeterXContext#set_block_action_type

Defined in:
lib/perimeterx/internal/perimeter_x_context.rb

#set_block_action_type(action) ⇒ Object



111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/perimeterx/internal/perimeter_x_context.rb', line 111

def set_block_action_type(action)
  @context[:block_action] = case action
    when 'c'
      return 'captcha'
    when 'b'
      return 'block'
    when 'j'
      return 'challenge'
    when 'r'
      return 'rate_limit'
    else
      return 'captcha'
    end
end