Class: Munificent::Fundraiser

Inherits:
ApplicationRecord show all
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

#to_s

Instance Method Details

#pro_bono?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'app/models/munificent/fundraiser.rb', line 45

def pro_bono?
  overpayment_mode == PRO_BONO
end

#pro_se?Boolean

Returns:

  • (Boolean)


49
50
51
# File 'app/models/munificent/fundraiser.rb', line 49

def pro_se?
  overpayment_mode == PRO_SE
end