Sha256: 1586bcb4bf72722383916f89e8ca0da7033778032642b1f4bde0938e8ab7d721

Contents?: true

Size: 453 Bytes

Versions: 32

Compression:

Stored size: 453 Bytes

Contents

class ExchangeOrder < Order 
  def self.location
    "Artful.ly"
  end
  
  def sell_tickets
 	end

  def purchase_action_class
    ExchangeAction
  end

  def revenue_applies_to_range(start_date, end_date)
    start_date < self.revenue_applies_at && self.revenue_applies_at < end_date
  end

  def calculate_when_revenue_applies
    self.revenue_applies_at = originally_sold_at
  end

  def ticket_details
    "exchanged tickets for " + super
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.11 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.10 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.9 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.8 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.7 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.6 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.5 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.4 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.3 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.2 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.1 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre app/models/orders/exchange_order.rb