Class: GpxDoctor::Parser::Result
- Inherits:
-
Struct
- Object
- Struct
- GpxDoctor::Parser::Result
- Defined in:
- lib/gpx_doctor/parser.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#routes ⇒ Object
Returns the value of attribute routes.
-
#tracks ⇒ Object
Returns the value of attribute tracks.
-
#waypoints ⇒ Object
Returns the value of attribute waypoints.
Instance Method Summary collapse
Instance Attribute Details
#metadata ⇒ Object
Returns the value of attribute metadata
10 11 12 |
# File 'lib/gpx_doctor/parser.rb', line 10 def @metadata end |
#routes ⇒ Object
Returns the value of attribute routes
10 11 12 |
# File 'lib/gpx_doctor/parser.rb', line 10 def routes @routes end |
#tracks ⇒ Object
Returns the value of attribute tracks
10 11 12 |
# File 'lib/gpx_doctor/parser.rb', line 10 def tracks @tracks end |
#waypoints ⇒ Object
Returns the value of attribute waypoints
10 11 12 |
# File 'lib/gpx_doctor/parser.rb', line 10 def waypoints @waypoints end |
Instance Method Details
#points ⇒ Object
11 12 13 |
# File 'lib/gpx_doctor/parser.rb', line 11 def points waypoints + routes.flat_map(&:points) + tracks.flat_map(&:points) end |