Method: Relevance::Tarantula::BasicAttack#input
- Defined in:
- lib/relevance/tarantula/basic_attack.rb
#input(input_field) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/relevance/tarantula/basic_attack.rb', line 19 def input(input_field) case input_field['name'] when /amount/ then random_int when /_id$/ then random_whole_number when /uploaded_data/ then nil when nil then input['value'] else random_int end end |