Sha256: 7a1009e1f8da201da538febe315120c44af3e87e13e2e03928a73a4725d2397c

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

class CompOrder < Order
  include Unrefundable
    
  def self.location
    "Artful.ly"
  end  

  def membership_action_class
    CompAction
  end
  
  def initialize
    super
    self.payment_method = ::CompPayment.payment_method
  end
  
  def sell_tickets
    all_tickets.each do |item|
      item.product.comp_to(self.person, self.created_at)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.24 app/models/orders/comp_order.rb
artfully_ose-1.2.0.pre.23 app/models/orders/comp_order.rb
artfully_ose-1.2.0.pre.21 app/models/orders/comp_order.rb
artfully_ose-1.2.0.pre.20 app/models/orders/comp_order.rb