Class: PA::DOM::Coord

Inherits:
Object
  • Object
show all
Defined in:
lib/dom/coord.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latObject

Returns the value of attribute lat.



2
3
4
# File 'lib/dom/coord.rb', line 2

def lat
  @lat
end

#lngObject

Returns the value of attribute lng.



2
3
4
# File 'lib/dom/coord.rb', line 2

def lng
  @lng
end