Sha256: 5b750ef5d7a44d0a54465c63f5b0f15a84929185dbf079ab91634a447f91c0a6

Contents?: true

Size: 286 Bytes

Versions: 28

Compression:

Stored size: 286 Bytes

Contents

class ExpireTicketJob < Struct.new(:ticket_ids, :cart_id)
  def self.enqueue(ticket_ids, cart_id)
    Delayed::Job.enqueue(ExpireTicketJob.new(ticket_ids, cart_id), :run_at => 10.minutes.from_now, :queue => "ticket")
  end

  def perform
    Ticket.unlock(ticket_ids, cart_id)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.beta.1 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.alpha.2 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.alpha.1 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.27 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.26 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.24 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.23 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.21 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.20 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.19 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.18 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.17 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.16 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.15 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.12 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.11 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.10 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.9 app/models/job/expire_ticket_job.rb
artfully_ose-1.2.0.pre.8 app/models/job/expire_ticket_job.rb