Class: GpxDoctor::Parser::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



10
11
12
# File 'lib/gpx_doctor/parser.rb', line 10

def 
  @metadata
end

#routesObject

Returns the value of attribute routes

Returns:

  • (Object)

    the current value of routes



10
11
12
# File 'lib/gpx_doctor/parser.rb', line 10

def routes
  @routes
end

#tracksObject

Returns the value of attribute tracks

Returns:

  • (Object)

    the current value of tracks



10
11
12
# File 'lib/gpx_doctor/parser.rb', line 10

def tracks
  @tracks
end

#waypointsObject

Returns the value of attribute waypoints

Returns:

  • (Object)

    the current value of waypoints



10
11
12
# File 'lib/gpx_doctor/parser.rb', line 10

def waypoints
  @waypoints
end

Instance Method Details

#pointsObject



11
12
13
# File 'lib/gpx_doctor/parser.rb', line 11

def points
  waypoints + routes.flat_map(&:points) + tracks.flat_map(&:points)
end