Class: OrderMailerJob

Inherits:
Struct
  • Object
show all
Defined in:
app/models/job/order_mailer_job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#orderObject

Returns the value of attribute order

Returns:

  • (Object)

    the current value of order



1
2
3
# File 'app/models/job/order_mailer_job.rb', line 1

def order
  @order
end

Instance Method Details

#performObject



2
3
4
5
6
7
# File 'app/models/job/order_mailer_job.rb', line 2

def perform
  OrderMailer.confirmation_for(order).deliver
rescue Exception => e
  Exceptional.context(:order_id => order.id)
  Exceptional.handle(e, "Could not send order confirmation for order")
end