Method: Rtml::Test::SimulatorPostProcessors::CardParsers#process_mag_reader

Defined in:
lib/rtml/test/simulator_post_processors/card_parsers.rb

#process_mag_reader(params) ⇒ Object



19
20
21
22
23
24
25
26
27
# File 'lib/rtml/test/simulator_post_processors/card_parsers.rb', line 19

def process_mag_reader(params)
  case params
    when 'read_data' ; # nothing because this needs user input
    when 'risk_mgmt'
      variables['card.parser.verdict'] = 'online'
      continue_forward
    else raise Rtml::Errors::SimulatorError, "Invalid mag params: #{params}"
  end
end