Class: GpxTrackGenerator::Track

Inherits:
Object
  • Object
show all
Defined in:
lib/gpx_track_generator/track.rb

Overview

Track

Instance Method Summary collapse

Constructor Details

#initialize(files, name:, reverse:, single_segment:) ⇒ Track

Returns a new instance of Track.



11
12
13
14
15
16
# File 'lib/gpx_track_generator/track.rb', line 11

def initialize(files, name:, reverse:, single_segment:)
  @files          = files
  @name           = name
  @reverse        = reverse
  @single_segment = single_segment
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/gpx_track_generator/track.rb', line 18

def to_s
  build_document
end