Class: PA::DOM::Coord
- Inherits:
-
Object
- Object
- PA::DOM::Coord
- Defined in:
- lib/dom/coord.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lng ⇒ Object
Returns the value of attribute lng.
Instance Method Summary collapse
-
#initialize(lat = nil, lng = nil) ⇒ Coord
constructor
A new instance of Coord.
Constructor Details
#initialize(lat = nil, lng = nil) ⇒ Coord
Returns a new instance of Coord.
4 5 6 7 |
# File 'lib/dom/coord.rb', line 4 def initialize(lat = nil, lng = nil) @lat = lat @lng = lng end |
Instance Attribute Details
#lat ⇒ Object
Returns the value of attribute lat.
2 3 4 |
# File 'lib/dom/coord.rb', line 2 def lat @lat end |
#lng ⇒ Object
Returns the value of attribute lng.
2 3 4 |
# File 'lib/dom/coord.rb', line 2 def lng @lng end |