# frozen_string_literal: truemoduleGitlabmoduleGithubImportmoduleRepresentationTIMESTAMP_KEYS=%i[created_at updated_at merged_at].freeze# Converts a Hash with String based keys to one that can be used by the# various Representation classes.## Example:## Representation.symbolize_hash('number' => 10) # => { number: 10 }defself.symbolize_hash(raw_hash=nil)hash=raw_hash.deep_symbolize_keysTIMESTAMP_KEYS.eachdo|key|hash[key]=Time.parse(hash[key])ifhash[key].is_a?(String)endhashendendendend