Class: Epok::Geocoder

Inherits:
Object
  • Object
show all
Includes:
Collectable
Defined in:
lib/epok/geocoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Collectable

#collection, included

Constructor Details

#initialize(location, categories) ⇒ Geocoder

Returns a new instance of Geocoder.



9
10
11
12
13
# File 'lib/epok/geocoder.rb', line 9

def initialize(location, categories)
  @x = location.x
  @y = location.y
  @categories = categories
end

Instance Attribute Details

#categoriesObject (readonly)

Returns the value of attribute categories.



7
8
9
# File 'lib/epok/geocoder.rb', line 7

def categories
  @categories
end

#xObject (readonly)

Returns the value of attribute x.



7
8
9
# File 'lib/epok/geocoder.rb', line 7

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



7
8
9
# File 'lib/epok/geocoder.rb', line 7

def y
  @y
end