Class: GpxRuby::Gpx::Document
- Inherits:
-
Object
- Object
- GpxRuby::Gpx::Document
- Defined in:
- lib/gpx_ruby/gpx/document.rb
Instance Attribute Summary collapse
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#tracks ⇒ Object
Returns the value of attribute tracks.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(a_hash) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(a_hash) ⇒ Document
Returns a new instance of Document.
9 10 11 12 13 |
# File 'lib/gpx_ruby/gpx/document.rb', line 9 def initialize(a_hash) @creator = a_hash[:creator] @version = a_hash[:version] @tracks = a_hash[:tracks] end |
Instance Attribute Details
#creator ⇒ Object
Returns the value of attribute creator.
7 8 9 |
# File 'lib/gpx_ruby/gpx/document.rb', line 7 def creator @creator end |
#tracks ⇒ Object
Returns the value of attribute tracks.
7 8 9 |
# File 'lib/gpx_ruby/gpx/document.rb', line 7 def tracks @tracks end |
#version ⇒ Object
Returns the value of attribute version.
7 8 9 |
# File 'lib/gpx_ruby/gpx/document.rb', line 7 def version @version end |