module FundRaise::Fundable
Public Instance Methods
add_funds(add_funding=25, pledge=false)
click to toggle source
# File lib/fund_raise/fundable.rb, line 3 def add_funds(add_funding=25, pledge=false) @current_funding += add_funding "#{@name} got more funds" end
fully_funded?()
click to toggle source
# File lib/fund_raise/fundable.rb, line 17 def fully_funded? funding_left <= 0 end
funding_left()
click to toggle source
# File lib/fund_raise/fundable.rb, line 13 def funding_left @target_funding - @current_funding end
remove_funds(reduce_funding=15)
click to toggle source
# File lib/fund_raise/fundable.rb, line 8 def remove_funds(reduce_funding=15) @current_funding -= reduce_funding "#{@name} lost some funds" end