app/dao/swimmer_stats_dao.rb
# Prepares the structure of DAO hash with neutral values
#

Prepares the structure of DAO hash with neutral values
Prepares the structure of DAO hash with neutral values
def prepare_structure
    @swimmer_stats[:meetings_count]           = 0
    @swimmer_stats[:individual_results_count] = 0
    @swimmer_stats[:team_names]               = ""
    @swimmer_stats[:teams_hash]               = nil
    @swimmer_stats[:first]                    = nil
    @swimmer_stats[:last]                     = nil
    @swimmer_stats[:first_meeting_hash]       = nil
    @swimmer_stats[:last_meeting_hash]        = nil
    @swimmer_stats[:meters_swam]              = 0
    @swimmer_stats[:time_swam]                = 0
    @swimmer_stats[:disqualifications]        = 0
    @swimmer_stats[:relay_results_count]     = 0
    @swimmer_stats[:relay_meters_swam]       = 0
    @swimmer_stats[:relay_time_swam]         = 0
    @swimmer_stats[:relay_disqualifications] = 0
    @swimmer_stats[:iron_masters]   = 0
    @swimmer_stats[:tot_fin_points] = 0
    @swimmer_stats[:worst_fin]      = nil
    @swimmer_stats[:best_fin]       = nil
    @swimmer_stats[:worst_fin_hash] = nil
    @swimmer_stats[:best_fin_hash]  = nil
    @swimmer_stats[:current_teams_hash]       = nil
    @swimmer_stats[:current_categories_array] = nil
  end
def prepare_structure @swimmer_stats [ :meetings_count ] = 0 @swimmer_stats [ :individual_results_count ] = 0 @swimmer_stats [ :team_names ] = "" @swimmer_stats [ :teams_hash ] = nil @swimmer_stats [ :first ] = nil @swimmer_stats [ :last ] = nil @swimmer_stats [ :first_meeting_hash ] = nil @swimmer_stats [ :last_meeting_hash ] = nil @swimmer_stats [ :meters_swam ] = 0 @swimmer_stats [ :time_swam ] = 0 @swimmer_stats [ :disqualifications ] = 0 @swimmer_stats [ :relay_results_count ] = 0 @swimmer_stats [ :relay_meters_swam ] = 0 @swimmer_stats [ :relay_time_swam ] = 0 @swimmer_stats [ :relay_disqualifications ] = 0 @swimmer_stats [ :iron_masters ] = 0 @swimmer_stats [ :tot_fin_points ] = 0 @swimmer_stats [ :worst_fin ] = nil @swimmer_stats [ :best_fin ] = nil @swimmer_stats [ :worst_fin_hash ] = nil @swimmer_stats [ :best_fin_hash ] = nil @swimmer_stats [ :current_teams_hash ] = nil @swimmer_stats [ :current_categories_array ] = nil end
Prepares the structure of DAO hash with neutral values
Prepares the structure of DAO hash with neutral values
# Individual results
 # Relay results
 # FIN statistics
 # Currents
