Class: Crowdfunder::GrantProject
- Defined in:
- lib/crowdfunder/grant_project.rb
Instance Attribute Summary
Attributes inherited from Project
#fully_funded, #initial_fund, #name, #target_fund
Instance Method Summary collapse
-
#initialize(name, initial_fund, target_fund) ⇒ GrantProject
constructor
A new instance of GrantProject.
- #remove_funds ⇒ Object
Methods inherited from Project
#each_pledge_received, #found_pledge, #pledged_funds, #to_s, #total_funds
Methods included from Fundable
#<=>, #add_funds, #fully_funded?, #total_funding_outstanding, #total_required_funds
Constructor Details
#initialize(name, initial_fund, target_fund) ⇒ GrantProject
Returns a new instance of GrantProject.
6 7 8 9 |
# File 'lib/crowdfunder/grant_project.rb', line 6 def initialize(name, initial_fund, target_fund) super(name, initial_fund, target_fund) @deducted = 0 end |
Instance Method Details
#remove_funds ⇒ Object
11 12 13 14 15 |
# File 'lib/crowdfunder/grant_project.rb', line 11 def remove_funds #super @initial_fund -= 0 #@deducted puts "Funds removed have been added back." end |