module FundRaise::Fundable
Public Instance Methods
add_funds(add_funding=25, pledge=false)
click to toggle source
# File lib/fund_raise/fundable.rb, line 5 def add_funds(add_funding=25, pledge=false) @current_funding += add_funding if !pledge puts "#{@name} got more funds!" end 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 21 def funding_left @target_funding - @current_funding end
remove_funds(remove_funding=15)
click to toggle source
# File lib/fund_raise/fundable.rb, line 12 def remove_funds(remove_funding=15) @current_funding -= remove_funding puts "#{@name} lost some funds!" end