class WebMinion::Bot
Attributes
bot[RW]
config[R]
Public Class Methods
new(config = {})
click to toggle source
# File lib/web_minion/bots/bot.rb, line 6 def initialize(config = {}) @config = config end
Public Instance Methods
execute_step(method, target, value = nil, element = nil, values_hash = {})
click to toggle source
# File lib/web_minion/bots/bot.rb, line 10 def execute_step(method, target, value = nil, element = nil, values_hash = {}) if method == :save_value method(method).call(target, value, element, values_hash) else method(method).call(target, value, element) end end