class BitPoker::BotProxy
@author Mckomo
Public Class Methods
new( bot )
click to toggle source
# File lib/bitpoker/bot_proxy.rb, line 10 def initialize( bot ) raise ArgumentError unless bot.kind_of?( BitPoker::BotInterface ) @bot = bot end
Public Instance Methods
trigger( action, args = [] )
click to toggle source
# File lib/bitpoker/bot_proxy.rb, line 15 def trigger( action, args = [] ) @bot.send( action, *args ) end