Class: WeChat::Bot::Callback
- Inherits:
-
Object
- Object
- WeChat::Bot::Callback
- Defined in:
- lib/wechat/bot/callback.rb
Instance Attribute Summary collapse
- #bot ⇒ Bot readonly
Instance Method Summary collapse
-
#initialize(bot) ⇒ Callback
constructor
A new instance of Callback.
- #synchronize(name, &block) ⇒ Object
Constructor Details
#initialize(bot) ⇒ Callback
Returns a new instance of Callback.
6 7 8 |
# File 'lib/wechat/bot/callback.rb', line 6 def initialize(bot) @bot = bot end |
Instance Attribute Details
Instance Method Details
#synchronize(name, &block) ⇒ Object
11 12 13 |
# File 'lib/wechat/bot/callback.rb', line 11 def synchronize(name, &block) @bot.synchronize(name, &block) end |