app/dao/swimmer_presence_dao.rb
# Adds a meeting presence element
# Returns meeting total
#

Adds a meeting presence element
Returns meeting total
Adds a meeting presence element Returns meeting total
def add_meeting( meeting_presence )    
    @meetings << meeting_presence
    @tot_events       += meeting_presence.events_count
    @tot_relays       += meeting_presence.relays_count
    @tot_was_presents += 1 if meeting_presence.was_present
    @tot_meeting_fees += meeting_presence.meeting_fee
    @tot_event_fees   += meeting_presence.get_events_fee
    @tot_relay_fees   += meeting_presence.get_relays_fee
    @tot_total_fees   += meeting_presence.get_total_fee
    @meetings.count
  end
def add_meeting ( meeting_presence ) @meetings << meeting_presence @tot_events += meeting_presence . events_count @tot_relays += meeting_presence . relays_count @tot_was_presents += 1 if meeting_presence . was_present @tot_meeting_fees += meeting_presence . meeting_fee @tot_event_fees += meeting_presence . get_events_fee @tot_relay_fees += meeting_presence . get_relays_fee @tot_total_fees += meeting_presence . get_total_fee @meetings . count end
Adds a meeting presence element
Returns meeting total
Adds a meeting presence element Returns meeting total
# Calculated values to increase speed

meeting_presence
<not_specific>