Class: Munificent::Fundraiser
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Munificent::Fundraiser
- Includes:
- AASM
- Defined in:
- app/models/munificent/fundraiser.rb
Constant Summary collapse
- OVERPAYMENT_MODES =
[ PRO_BONO = "pro_bono".freeze, PRO_SE = "pro_se".freeze, ].freeze
Instance Method Summary collapse
Methods inherited from ApplicationRecord
Instance Method Details
#pro_bono? ⇒ Boolean
45 46 47 |
# File 'app/models/munificent/fundraiser.rb', line 45 def pro_bono? overpayment_mode == PRO_BONO end |
#pro_se? ⇒ Boolean
49 50 51 |
# File 'app/models/munificent/fundraiser.rb', line 49 def pro_se? overpayment_mode == PRO_SE end |