Exception: BitPoker::BotError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/bitpoker.rb

Overview

Exception raised when a bot breaks rules of the BitPoker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bot, message = "") ⇒ BotError

Returns a new instance of BotError.



54
55
56
57
# File 'lib/bitpoker.rb', line 54

def initialize( bot, message = "" )
   super( message )
   @bot = bot
end

Instance Attribute Details

#botObject (readonly)

Returns the value of attribute bot.



52
53
54
# File 'lib/bitpoker.rb', line 52

def bot
  @bot
end