Class: Gippix::Point
- Inherits:
-
Struct
- Object
- Struct
- Gippix::Point
- Defined in:
- lib/gippix.rb
Instance Attribute Summary collapse
-
#elevation ⇒ Object
Returns the value of attribute elevation.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lon ⇒ Object
Returns the value of attribute lon.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#elevation ⇒ Object
Returns the value of attribute elevation
14 15 16 |
# File 'lib/gippix.rb', line 14 def elevation @elevation end |
#lat ⇒ Object
Returns the value of attribute lat
14 15 16 |
# File 'lib/gippix.rb', line 14 def lat @lat end |
#lon ⇒ Object
Returns the value of attribute lon
14 15 16 |
# File 'lib/gippix.rb', line 14 def lon @lon end |
#time ⇒ Object
Returns the value of attribute time
14 15 16 |
# File 'lib/gippix.rb', line 14 def time @time end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/gippix.rb', line 15 def to_s "POINT(%s %s %s)" % [ lon, lat, elevation ] end |