Class: Donation

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Itemable
Defined in:
app/models/donation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Itemable

#sold_price

Class Method Details

.realized_feeObject



14
15
16
# File 'app/models/donation.rb', line 14

def self.realized_fee
  0
end

Instance Method Details

#exchangeable?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'app/models/donation.rb', line 34

def exchangeable?
  false
end

#expired?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/donation.rb', line 26

def expired?
  false
end

#order_summary_descriptionObject



22
23
24
# File 'app/models/donation.rb', line 22

def order_summary_description
  "Donation"
end

#priceObject Also known as: cart_price



9
10
11
# File 'app/models/donation.rb', line 9

def price
  amount
end

#realized_feeObject



18
19
20
# File 'app/models/donation.rb', line 18

def realized_fee
  self.class.realized_fee
end

#refundable?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'app/models/donation.rb', line 30

def refundable?
  true
end

#returnable?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'app/models/donation.rb', line 38

def returnable?
  false
end