Class: Ziya::Maps::Geocode
- Inherits:
-
Object
- Object
- Ziya::Maps::Geocode
- Defined in:
- lib/ziya/maps/geocode.rb
Instance Attribute Summary collapse
-
#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) ⇒ Geocode
constructor
A new instance of Geocode.
- #to_s ⇒ Object
Constructor Details
#initialize(lat, long) ⇒ Geocode
Returns a new instance of Geocode.
10 11 12 |
# File 'lib/ziya/maps/geocode.rb', line 10 def initialize( lat, long ) @lat, @long = lat, long end |
Instance Attribute Details
#lat ⇒ Object (readonly)
Returns the value of attribute lat.
8 9 10 |
# File 'lib/ziya/maps/geocode.rb', line 8 def lat @lat end |
#long ⇒ Object (readonly)
Returns the value of attribute long.
8 9 10 |
# File 'lib/ziya/maps/geocode.rb', line 8 def long @long end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/ziya/maps/geocode.rb', line 14 def to_s "#{lat},#{long}" end |