Class: WeChat::Bot::Callback

Inherits:
Object
  • Object
show all
Defined in:
lib/wechat/bot/callback.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#botBot (readonly)

Returns:



4
5
6
# File 'lib/wechat/bot/callback.rb', line 4

def bot
  @bot
end

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