Class: Donation
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Donation
- Includes:
- Itemable
- Defined in:
- app/models/donation.rb
Class Method Summary collapse
Instance Method Summary collapse
- #exchangeable? ⇒ Boolean
- #expired? ⇒ Boolean
- #order_summary_description ⇒ Object
- #price ⇒ Object (also: #cart_price)
- #realized_fee ⇒ Object
- #refundable? ⇒ Boolean
- #returnable? ⇒ Boolean
Methods included from Itemable
Class Method Details
.realized_fee ⇒ Object
14 15 16 |
# File 'app/models/donation.rb', line 14 def self.realized_fee 0 end |
Instance Method Details
#exchangeable? ⇒ Boolean
34 35 36 |
# File 'app/models/donation.rb', line 34 def exchangeable? false end |
#expired? ⇒ Boolean
26 27 28 |
# File 'app/models/donation.rb', line 26 def expired? false end |
#order_summary_description ⇒ Object
22 23 24 |
# File 'app/models/donation.rb', line 22 def order_summary_description "Donation" end |
#price ⇒ Object Also known as: cart_price
9 10 11 |
# File 'app/models/donation.rb', line 9 def price amount end |
#realized_fee ⇒ Object
18 19 20 |
# File 'app/models/donation.rb', line 18 def realized_fee self.class.realized_fee end |
#refundable? ⇒ Boolean
30 31 32 |
# File 'app/models/donation.rb', line 30 def refundable? true end |
#returnable? ⇒ Boolean
38 39 40 |
# File 'app/models/donation.rb', line 38 def returnable? false end |