Class: BitPoker::BotProxy
- Inherits:
-
Object
- Object
- BitPoker::BotProxy
- Includes:
- BotProxyInterface
- Defined in:
- lib/bitpoker/bot_proxy.rb
Overview
Instance Method Summary collapse
-
#initialize(bot) ⇒ BotProxy
constructor
A new instance of BotProxy.
- #trigger(action, args = []) ⇒ Object
Constructor Details
#initialize(bot) ⇒ BotProxy
Returns a new instance of BotProxy.
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 |