class GreenDay::Contest
Attributes
atcoder_client[R]
name[R]
tasks[R]
Public Class Methods
new(contest_name, client)
click to toggle source
# File lib/green_day/contest.rb, line 10 def initialize(contest_name, client) raise GreenDay::Error 'cant find contest' unless client.contest_exist?(contest_name) @name = contest_name @tasks = Parallel.map(client.fetch_task_codes(self)) do |task_code| Task.new(self, task_code, client) end end