Class: BitPoker::BotProxy

Inherits:
Object
  • Object
show all
Includes:
BotProxyInterface
Defined in:
lib/bitpoker/bot_proxy.rb

Overview

Author:

  • Mckomo

Instance Method Summary collapse

Constructor Details

#initialize(bot) ⇒ BotProxy

Returns a new instance of BotProxy.

Raises:

  • (ArgumentError)


10
11
12
13
# File 'lib/bitpoker/bot_proxy.rb', line 10

def initialize( bot )
   raise ArgumentError unless bot.kind_of?( BitPoker::BotInterface )
   @bot = bot
end

Instance Method Details

#trigger(action, args = []) ⇒ Object



15
16
17
# File 'lib/bitpoker/bot_proxy.rb', line 15

def trigger( action, args = [] )
   @bot.send( action, *args )
end