app/dao/swimmer_career_dao.rb
# These must be initialized on creation:

These must be initialized on creation.
These must be initialized on creation .
def add_result( meeting_id, result_id, event_order, event_code, time_swam, is_disqualified = false, is_personal_best = false, standard_points = nil, individual_points = nil, meeting_points = nil )
      if !@events.has_key?( event_order )
        @events[event_order] = SwimmerCareerEventDAO.new( event_code )
      else
        @events[event_order].add_event_swam
      end
      meeting = @meetings[meeting_id]
      meeting.add_result( result_id, event_code, time_swam, is_disqualified, is_personal_best, standard_points, individual_points, meeting_points ) if meeting
    end
def add_result ( meeting_id , result_id , event_order , event_code , time_swam , is_disqualified = false , is_personal_best = false , standard_points = nil , individual_points = nil , meeting_points = nil ) if ! @events . has_key? ( event_order ) @events [ event_order ] = SwimmerCareerEventDAO . new ( event_code ) else @events [ event_order ] . add_event_swam end meeting = @meetings [ meeting_id ] meeting . add_result ( result_id , event_code , time_swam , is_disqualified , is_personal_best , standard_points , individual_points , meeting_points ) if meeting end
These must be initialized on creation:
These must be initialized on creation :
meeting_id
<not_specific>
result_id
<not_specific>
event_order
<not_specific>
event_code
<not_specific>
time_swam
<not_specific>
is_disqualified
<not_specific>
is_personal_best
<not_specific>
standard_points
<not_specific>
individual_points
<not_specific>
meeting_points
<not_specific>