Class: Ziya::Maps::Geocode

Inherits:
Object
  • Object
show all
Defined in:
lib/ziya/maps/geocode.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latObject (readonly)

Returns the value of attribute lat.



8
9
10
# File 'lib/ziya/maps/geocode.rb', line 8

def lat
  @lat
end

#longObject (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_sObject



14
15
16
# File 'lib/ziya/maps/geocode.rb', line 14

def to_s
  "#{lat},#{long}"
end