Class: BillboardApi::Queue

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/billboard-api/queue.rb

Instance Method Summary collapse

Instance Method Details

#try_againObject

name retry is a keyword in ruby



8
9
10
11
12
13
14
# File 'lib/billboard-api/queue.rb', line 8

def try_again
  customer = self.serialized_customer
  order = self.serialized_order
  order.customer_id = customer.id # ID from Billboard
  
  order.save # request to billboard
end