class CrowdFund::MatchedFundsProject

Public Instance Methods

add_funds(amount=25) click to toggle source
Calls superclass method
# File lib/fundraising_project/matched_funds_project.rb, line 9
def add_funds(amount=25)
  amount *= 2 if half_funded?
  super(amount)
end
half_funded?() click to toggle source
# File lib/fundraising_project/matched_funds_project.rb, line 5
def half_funded?
  (@target_funding_amount - total_funds) <= total_funds
end