Class: Trackler::TrackFile

Inherits:
GuaranteedFile show all
Defined in:
lib/trackler/guaranteed_file.rb

Instance Attribute Summary

Attributes inherited from GuaranteedFile

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GuaranteedFile

for

Class Method Details

.location(problem:, track:, filename:) ⇒ Object



30
31
32
# File 'lib/trackler/guaranteed_file.rb', line 30

def self.location(problem:, track:, filename:)
  File.join(problem.root, 'tracks', track.id, 'exercises', problem.slug, filename)
end

Instance Method Details

#urlObject



34
35
36
# File 'lib/trackler/guaranteed_file.rb', line 34

def url
  "#{track.repository}/blob/master/exercises/%s/#{filename}" % problem.slug
end