Class: Result

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

Overview

the result of an event that the member participated in

Constant Summary collapse

ATTRIBUTES =
[ :certificate, :date, :distance, :organizer, :type ]

Instance Method Summary collapse

Constructor Details

#initialize(meta = nil) ⇒ Result

Returns a new instance of Result.



51
52
53
54
55
# File 'lib/member.rb', line 51

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