Class: Boty::Session
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
Attributes included from Logger
Instance Method Summary collapse
Methods included from Logger
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
7 8 9 |
# File 'lib/boty/session.rb', line 7 def bot @bot end |
Instance Method Details
#start(&block) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/boty/session.rb', line 9 def start(&block) EM.run do login @bot = initialize_bot(&block) stablish_connection end self end |