Method: CodeforcesAPI::Object::ProblemResult#initialize

Defined in:
lib/codeforces_api/object/problem_result.rb

#initialize(problem_result) ⇒ ProblemResult

Returns a new instance of ProblemResult.



14
15
16
# File 'lib/codeforces_api/object/problem_result.rb', line 14

def initialize problem_result
  ATTRS.each { |attr| instance_variable_set("@#{attr}", problem_result[attr.to_s]) }
end