Method: Codeforces::Models::Problems#initialize
- Defined in:
- lib/codeforces/models/problems.rb
#initialize(new_client, new_base) ⇒ Problems
Returns a new instance of Problems.
5 6 7 8 9 10 11 12 |
# File 'lib/codeforces/models/problems.rb', line 5 def initialize(new_client, new_base) super new_client, new_base @contest = {} new_base.each do |problem| @contest[problem.contestId] ||= [] @contest[problem.contestId].push problem end end |