Class: Award

Inherits:
Object
  • Object
show all
Defined in:
lib/member.rb

Overview

awards for total distance, number of events

Constant Summary collapse

ATTRIBUTES =
[ :type, :year ]

Instance Method Summary collapse

Constructor Details

#initialize(meta = nil) ⇒ Award

Returns a new instance of Award.



65
66
67
68
69
# File 'lib/member.rb', line 65

def initialize meta = nil
  ATTRIBUTES.each do |item|
    self.send("#{item}=", (meta[item] || ""))
  end if meta
end