class Quartet
Attributes
baritone[RW]
bass[RW]
comments[RW]
lead[RW]
members[RW]
tenor[RW]
Public Class Methods
all()
click to toggle source
# File lib/barbershop_contestants/competitor.rb, line 55 def self.all @@all.find_all { |c| c.type == "quartet" } end
new(arg_hash)
click to toggle source
# File lib/barbershop_contestants/competitor.rb, line 41 def initialize(arg_hash) self.name = arg_hash[:name] self.type = 'quartet' self.district = arg_hash[:district] self.performances = (arg_hash[:performances] || []) self.comments = arg_hash[:comments] self.members = self.format_members(arg_hash[:members]) end
Public Instance Methods
format_members(member_string)
click to toggle source
# File lib/barbershop_contestants/competitor.rb, line 50 def format_members(member_string) self.members = member_string # TODO: modify to pull out the members and put them in their own hashes end