Class: Munificent::Fundraiser

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


43
44
45
# File 'app/models/munificent/fundraiser.rb', line 43

def pro_bono?
  overpayment_mode == PRO_BONO
end

#pro_se?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'app/models/munificent/fundraiser.rb', line 47

def pro_se?
  overpayment_mode == PRO_SE
end