Sha256: 5bde7c9c521671a1a82bbf4649538089b6312bd4bb62800190b639a4cb789572

Contents?: true

Size: 514 Bytes

Versions: 7

Compression:

Stored size: 514 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

module Stealth

  class ScheduledReplyJob < Stealth::Jobs
    sidekiq_options queue: :stealth_replies, retry: false

    def perform(service, user_id, flow, state, target_id=nil)
      service_message = ServiceMessage.new(service: service)
      service_message.sender_id = user_id
      service_message.target_id = target_id
      controller = BotController.new(service_message: service_message)
      controller.step_to(flow: flow, state: state)
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stealth-2.0.0.beta7 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta6 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta5 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta4 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta3 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta2 lib/stealth/scheduled_reply.rb
stealth-2.0.0.beta1 lib/stealth/scheduled_reply.rb