module Fundraising::Fundable

Public Instance Methods

add_funds(amount) click to toggle source
# File lib/fundraising/fundable.rb, line 3
def add_funds(amount)
  self.funding += amount
  puts "Project #{name} added funds!"
end
funds_needed() click to toggle source
# File lib/fundraising/fundable.rb, line 13
def funds_needed
  funding_target - funding
end
remove_funds(amount) click to toggle source
# File lib/fundraising/fundable.rb, line 8
def remove_funds(amount)
  self.funding -= amount
  puts "Project #{name} lost funds!"
end