module HoodimusPrime::Fundable

Public Instance Methods

fully_funded() click to toggle source
# File lib/hoodimus_prime/fundable.rb, line 21
def fully_funded
  @balance >= @goal
end
gains() click to toggle source
# File lib/hoodimus_prime/fundable.rb, line 15
def gains
  @balance += 25
  puts "Project #{@name} has reported a gain in funds!"
  puts "\n"
end
loss() click to toggle source
# File lib/hoodimus_prime/fundable.rb, line 9
def loss
  @balance -= 15
  puts "Project #{@name} has taken a loss in funds!"
  puts "\n"
end
short() click to toggle source
# File lib/hoodimus_prime/fundable.rb, line 5
  def short
  @goal - @balance
end