module FundraisingProgram::Fundable

Public Instance Methods

add_fund() click to toggle source
# File lib/fundraising_program/fundable.rb, line 4
def add_fund
  self.funding += 25
  puts "O projeto #{self.name.upcase} recebeu mais fundos =D."
end
fully_funded?() click to toggle source
# File lib/fundraising_program/fundable.rb, line 14
def fully_funded?
  self.total_funds >= self.target_funding
end
remove_fund() click to toggle source
# File lib/fundraising_program/fundable.rb, line 9
def remove_fund
  self.funding -= 15
  puts "O projeto #{self.name.upcase} perdeu alguns fundos =(."
end