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.3.0.pre4 app/models/orders/exchange_order.rb
artfully_ose-1.3.0.pre3 app/models/orders/exchange_order.rb
artfully_ose-1.3.0.pre2 app/models/orders/exchange_order.rb
artfully_ose-1.3.0.pre1 app/models/orders/exchange_order.rb
artfully_ose-1.2.0 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.beta.1 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.alpha.2 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.alpha.1 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.27 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.26 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.24 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.23 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.21 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.20 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.19 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.18 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.17 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.16 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.15 app/models/orders/exchange_order.rb
artfully_ose-1.2.0.pre.12 app/models/orders/exchange_order.rb