class CodebreakerVukolovEdition::Save_record
Attributes
hint[R]
secret_code[R]
state[R]
time[R]
turns[R]
username[R]
Public Class Methods
new(username, state, turns, hint, secret_code)
click to toggle source
# File lib/save_record.rb, line 7 def initialize(username, state, turns, hint, secret_code) @time = Time.now.strftime('%F %T') @username = username @state = state @turns = turns @hint = hint @secret_code = secret_code end