2007-12-21 08:48:59 +01:00
|
|
|
class Customer < Struct.new(:name, :id)
|
|
|
|
def to_param
|
|
|
|
id.to_s
|
|
|
|
end
|
|
|
|
end
|
2008-05-18 06:22:34 +02:00
|
|
|
|
|
|
|
class BadCustomer < Customer
|
|
|
|
end
|
|
|
|
|
|
|
|
class GoodCustomer < Customer
|
|
|
|
end
|
2009-03-16 15:55:30 +01:00
|
|
|
|
|
|
|
module Quiz
|
|
|
|
class Question < Struct.new(:name, :id)
|
|
|
|
def to_param
|
|
|
|
id.to_s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|