Module: Telegram::Bot::Async::Job
- Defined in:
- lib/telegram/bot/async.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
42 43 44 |
# File 'lib/telegram/bot/async.rb', line 42 def included(base) base.singleton_class.send :attr_accessor, :client_class end |
Instance Method Details
#perform(client_id, *args) ⇒ Object
47 48 49 50 |
# File 'lib/telegram/bot/async.rb', line 47 def perform(client_id, *args) client = self.class.client_class.wrap(client_id.to_sym) client.async(false) { client.request(*args) } end |