Class: Trackler::TrackFile
- Inherits:
-
GuaranteedFile
- Object
- GuaranteedFile
- Trackler::TrackFile
- Defined in:
- lib/trackler/guaranteed_file.rb
Instance Attribute Summary
Attributes inherited from GuaranteedFile
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from GuaranteedFile
Class Method Details
.location(specification:, track:, filename:) ⇒ Object
30 31 32 |
# File 'lib/trackler/guaranteed_file.rb', line 30 def self.location(specification:, track:, filename:) File.join(specification.root, 'tracks', track.id, 'exercises', specification.slug, '.meta', filename) end |
Instance Method Details
#url ⇒ Object
34 35 36 |
# File 'lib/trackler/guaranteed_file.rb', line 34 def url "#{track.repository}/blob/master/exercises/%s/.meta/#{filename}" % specification.slug end |