module CrowdFund::PledgePool
Constants
- PLEDGES
Public Class Methods
list()
click to toggle source
# 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()
click to toggle source
# File lib/crowd_fund/pledge_pool.rb, line 11 def self.randomize PLEDGES.sample end