Class: Geocoder::EastingNorthing
- Inherits:
-
Object
- Object
- Geocoder::EastingNorthing
- Defined in:
- lib/easting_northing.rb
Instance Attribute Summary collapse
-
#easting ⇒ Object
readonly
Returns the value of attribute easting.
-
#lat_lng ⇒ Object
readonly
Returns the value of attribute lat_lng.
-
#northing ⇒ Object
readonly
Returns the value of attribute northing.
Instance Method Summary collapse
-
#initialize(opts) ⇒ EastingNorthing
constructor
A new instance of EastingNorthing.
Constructor Details
#initialize(opts) ⇒ EastingNorthing
Returns a new instance of EastingNorthing.
5 6 7 8 9 10 |
# File 'lib/easting_northing.rb', line 5 def initialize(opts) @easting = opts[:easting] @northing = opts[:northing] @lat_lng = to_WGS84(to_osgb_36) end |
Instance Attribute Details
#easting ⇒ Object (readonly)
Returns the value of attribute easting.
3 4 5 |
# File 'lib/easting_northing.rb', line 3 def easting @easting end |
#lat_lng ⇒ Object (readonly)
Returns the value of attribute lat_lng.
3 4 5 |
# File 'lib/easting_northing.rb', line 3 def lat_lng @lat_lng end |
#northing ⇒ Object (readonly)
Returns the value of attribute northing.
3 4 5 |
# File 'lib/easting_northing.rb', line 3 def northing @northing end |