Sha256: e495908e998a70c1f9481ad9e6b00cd2738c14a2c4e0c7f9a6ff9be5a58f5d8d
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
# frozen_string_literal: true module CodebreakerVk class TableData attr_accessor :name, :difficulty, :attempts_total, :attempts_used, :hints_total, :hints_used def initialize(name:, difficulty:, attempts_total:, attempts_used:, hints_total:, hints_used:) @name = name @difficulty = difficulty @attempts_total = attempts_total @attempts_used = attempts_used @hints_total = hints_total @hints_used = hints_used end def to_s I18n.t(:stats, name: @name, difficulty: @difficulty, attempts_total: @attempts_total, attempts_used: @attempts_used, hints_total: @hints_total, hints_used: @hints_used) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
codebreaker_vk-1.0.3 | lib/codebreaker_vk/table_data.rb |
codebreaker_vk-1.0.2 | lib/codebreaker_vk/table_data.rb |
codebreaker_vk-1.0.1 | lib/codebreaker_vk/table_data.rb |