Class: RdNapToEtrs::Point
- Inherits:
-
Object
- Object
- RdNapToEtrs::Point
- Defined in:
- lib/rd_nap_to_etrs/point.rb
Instance Attribute Summary collapse
-
#h ⇒ Object
Returns the value of attribute h.
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
-
#nap ⇒ Object
Returns the value of attribute nap.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x: nil, y: nil, nap: nil, lat: nil, lng: nil, h: nil) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x: nil, y: nil, nap: nil, lat: nil, lng: nil, h: nil) ⇒ Point
Returns a new instance of Point.
5 6 7 8 9 10 11 12 |
# File 'lib/rd_nap_to_etrs/point.rb', line 5 def initialize(x: nil, y: nil, nap: nil, lat: nil, lng: nil, h: nil) @x = x @y = y @nap = nap @lat = lat @lng = lng @h = h end |
Instance Attribute Details
#h ⇒ Object
Returns the value of attribute h.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def h @h end |
#lat ⇒ Object
Returns the value of attribute lat.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def lng @lng end |
#nap ⇒ Object
Returns the value of attribute nap.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def nap @nap end |
#x ⇒ Object
Returns the value of attribute x.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
3 4 5 |
# File 'lib/rd_nap_to_etrs/point.rb', line 3 def y @y end |