Class: Omega::ContestRun
- Inherits:
-
Base
- Object
- Base
- Omega::ContestRun
show all
- Defined in:
- lib/omega/contest_run.rb
Instance Attribute Summary
Attributes inherited from Base
#data
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Omega::Base
Instance Method Details
#details ⇒ Object
7
8
9
|
# File 'lib/omega/contest_run.rb', line 7
def details
@details ||= @client.run_details(@data[:guid])
end
|
#save_at(path) ⇒ Object
15
16
17
|
# File 'lib/omega/contest_run.rb', line 15
def save_at(path)
File.write("#{path}/#{@data[:guid]}.yaml", { details:, data: @data }.to_yaml)
end
|
#source_code ⇒ Object
11
12
13
|
# File 'lib/omega/contest_run.rb', line 11
def source_code
details[:source]
end
|