Sha256: 0be4e91243e2b681f83eb1524fe1beaf74925e829c33a70058e719205f60e433

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

module AndriiCodebreaker
  module Statistic
    include Constant

    def statistics
      data = DbYaml.load_file_stats('result.yml')
      data.sort_by { |item| [-DIFFICULTY_SORT[item.difficulties.name.to_sym], item.used_attempts, item.used_hints] }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
andrii_codebreaker-0.1.14 lib/andrii_codebreaker/statistic.rb
andrii_codebreaker-0.1.13 lib/andrii_codebreaker/statistic.rb
andrii_codebreaker-0.1.12 lib/andrii_codebreaker/statistic.rb
andrii_codebreaker-0.1.11 lib/andrii_codebreaker/statistic.rb
andrii_codebreaker-0.1.10 lib/andrii_codebreaker/statistic.rb