Module: CrowdFund::FundingRound
- Defined in:
- lib/crowdfund/funding_round.rb
Class Method Summary collapse
Class Method Details
.take_turn(project) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/crowdfund/funding_round.rb', line 6 def self.take_turn(project) die = Die.new if die.roll.even? project.add_fund else project.remove_fund end # pledge = PledgePool.random # project.received_pledge(pledge) project.received_pledge(PledgePool.random) end |