Class: GpxDoctor::Models::TrackSegment

Inherits:
Struct
  • Object
show all
Defined in:
lib/gpx_doctor/models/track_segment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTrackSegment

Returns a new instance of TrackSegment.



6
7
8
9
# File 'lib/gpx_doctor/models/track_segment.rb', line 6

def initialize(**)
  super
  self.points ||= []
end

Instance Attribute Details

#pointsObject

Returns the value of attribute points

Returns:

  • (Object)

    the current value of points



5
6
7
# File 'lib/gpx_doctor/models/track_segment.rb', line 5

def points
  @points
end