Class: CrowdFund::GrantProject

Inherits:
Project
  • Object
show all
Defined in:
lib/crowdfund/grant_project.rb

Instance Attribute Summary

Attributes inherited from Project

#funding, #name, #target_funding

Instance Method Summary collapse

Methods inherited from Project

#<=>, #each_received_pledge, #initialize, #received_pledge, #to_s, #total_pledges

Methods included from Fundable

#add_fund, #fully_funded?, #funding_needed

Constructor Details

This class inherits a constructor from CrowdFund::Project

Instance Method Details

#remove_fund(amount = 15) ⇒ Object

Grant project doses not allow funds to be removed



6
7
8
9
# File 'lib/crowdfund/grant_project.rb', line 6

def remove_fund(amount=15)
  @funding -= 0
  puts "#{@name} retained same funds!"
end