Class: Contestify::Judge::Coci

Inherits:
Object
  • Object
show all
Defined in:
lib/contestify/judges/coci/coci.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(problems_url) ⇒ Coci

Returns a new instance of Coci.



8
9
10
11
12
13
14
# File 'lib/contestify/judges/coci/coci.rb', line 8

def initialize(problems_url)
  @problems_url = problems_url
  get_problems
  unzip_problems
  @working_root_path = Dir.pwd
  @problems_paths = Contestify::Coci::Configuration.configure!(@working_root_path)
end

Instance Attribute Details

#problems_pathsObject

Returns the value of attribute problems_paths.



6
7
8
# File 'lib/contestify/judges/coci/coci.rb', line 6

def problems_paths
  @problems_paths
end

#problems_urlObject

Returns the value of attribute problems_url.



6
7
8
# File 'lib/contestify/judges/coci/coci.rb', line 6

def problems_url
  @problems_url
end

#working_root_pathObject

Returns the value of attribute working_root_path.



6
7
8
# File 'lib/contestify/judges/coci/coci.rb', line 6

def working_root_path
  @working_root_path
end