Class: KML::Route
- Inherits:
-
Object
- Object
- KML::Route
- Defined in:
- lib/gpx_kml/kml/route.rb
Overview
Docu
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#points ⇒ Object
readonly
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(route) ⇒ Route
constructor
A new instance of Route.
Constructor Details
#initialize(route) ⇒ Route
Returns a new instance of Route.
4 5 6 7 8 9 10 11 12 |
# File 'lib/gpx_kml/kml/route.rb', line 4 def initialize(route) return unless route.is_a?(Nokogiri::XML::Element) && !route.xpath('self::xmlns:LinearRing').empty? @node = route @name = _name @points = _points @author = @link = _link end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
14 15 16 |
# File 'lib/gpx_kml/kml/route.rb', line 14 def @author end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
14 15 16 |
# File 'lib/gpx_kml/kml/route.rb', line 14 def link @link end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/gpx_kml/kml/route.rb', line 14 def name @name end |
#points ⇒ Object (readonly)
Returns the value of attribute points.
14 15 16 |
# File 'lib/gpx_kml/kml/route.rb', line 14 def points @points end |