Method: Shoppe::Order#build_time

Defined in:
app/models/shoppe/order.rb

#build_timeFloat

The length of time the customer spent building the order before submitting it to us. The time from first item in basket to received.

Returns:

  • (Float)
    • the length of time



53
54
55
56
# File 'app/models/shoppe/order.rb', line 53

def build_time
  return nil if self.received_at.blank?
  self.created_at - self.received_at
end