src/functions/score_handler.rb
# Function for parsing the items from the DB
Function for parsing the items from the DB
Function for parsing the items from the DB
def parse_items(items)
  items.map{ |item|
    {
      user_name: item['user_name'],
      date_time: item['date_time'],
      score: item['score'].to_i
    }
  }
end
def parse_items ( items ) items . map { | item | { user_name : item [ 'user_name' ] , date_time : item [ 'date_time' ] , score : item [ 'score' ] . to_i } } end
Function for parsing the items from the DB
Function for parsing the items from the DB
items