Exception: BitPoker::BotError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- BitPoker::BotError
- Defined in:
- lib/bitpoker.rb
Overview
Exception raised when a bot breaks rules of the BitPoker
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
Instance Method Summary collapse
-
#initialize(bot, message = "") ⇒ BotError
constructor
A new instance of BotError.
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, = "" ) super( ) @bot = bot end |
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
52 53 54 |
# File 'lib/bitpoker.rb', line 52 def bot @bot end |