module Telegram::Bot::Async::Job
Public Class Methods
included(base)
click to toggle source
# File lib/telegram/bot/async.rb, line 42 def included(base) base.singleton_class.send :attr_accessor, :client_class end
Public Instance Methods
perform(client_id, *args)
click to toggle source
# 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