Class: GpxDoctor::Models::Route
- Inherits:
-
Struct
- Object
- Struct
- GpxDoctor::Models::Route
- Defined in:
- lib/gpx_doctor/models/route.rb
Instance Attribute Summary collapse
-
#cmt ⇒ Object
Returns the value of attribute cmt.
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#links ⇒ Object
Returns the value of attribute links.
-
#name ⇒ Object
Returns the value of attribute name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#points ⇒ Object
Returns the value of attribute points.
-
#src ⇒ Object
Returns the value of attribute src.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize ⇒ Route
Returns a new instance of Route.
9 10 11 12 13 |
# File 'lib/gpx_doctor/models/route.rb', line 9 def initialize(**) super self.links ||= [] self.points ||= [] end |
Instance Attribute Details
#cmt ⇒ Object
Returns the value of attribute cmt
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def cmt @cmt end |
#desc ⇒ Object
Returns the value of attribute desc
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def desc @desc end |
#links ⇒ Object
Returns the value of attribute links
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def links @links end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def name @name end |
#number ⇒ Object
Returns the value of attribute number
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def number @number end |
#points ⇒ Object
Returns the value of attribute points
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def points @points end |
#src ⇒ Object
Returns the value of attribute src
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def src @src end |
#type ⇒ Object
Returns the value of attribute type
5 6 7 |
# File 'lib/gpx_doctor/models/route.rb', line 5 def type @type end |