Class: OsgbConvert::Coordinate
- Inherits:
-
Object
- Object
- OsgbConvert::Coordinate
- Includes:
- Converter
- Defined in:
- lib/osgb_convert.rb
Constant Summary
Constants included from Converter
OsgbConvert::Converter::ELLIPSE, OsgbConvert::Converter::HELMERT
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#lat ⇒ Object
readonly
Returns the value of attribute lat.
-
#long ⇒ Object
readonly
Returns the value of attribute long.
Instance Method Summary collapse
-
#initialize(lat, long, height) ⇒ Coordinate
constructor
A new instance of Coordinate.
Methods included from Converter
Constructor Details
#initialize(lat, long, height) ⇒ Coordinate
Returns a new instance of Coordinate.
88 89 90 91 92 |
# File 'lib/osgb_convert.rb', line 88 def initialize(lat, long, height) @lat = lat @long = long @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
86 87 88 |
# File 'lib/osgb_convert.rb', line 86 def height @height end |
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
86 87 88 |
# File 'lib/osgb_convert.rb', line 86 def lat @lat end |
#long ⇒ Object (readonly)
Returns the value of attribute long.
86 87 88 |
# File 'lib/osgb_convert.rb', line 86 def long @long end |