Module: CrowdFund::PledgePool
- Defined in:
- lib/crowd_fund/pledge_pool.rb
Constant Summary collapse
Class Method Summary collapse
Class Method Details
.list ⇒ Object
15 16 17 18 19 20 |
# File 'lib/crowd_fund/pledge_pool.rb', line 15 def self.list puts "There are #{PLEDGES.size} possible pledge amounts:" PLEDGES.each do |pledge| puts "A #{pledge.name} pledge is worth $#{pledge.value}." end end |
.randomize ⇒ Object
11 12 13 |
# File 'lib/crowd_fund/pledge_pool.rb', line 11 def self.randomize PLEDGES.sample end |