Class: Epok::Geocoder
- Inherits:
-
Object
- Object
- Epok::Geocoder
- Includes:
- Collectable
- Defined in:
- lib/epok/geocoder.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
readonly
Returns the value of attribute categories.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(location, categories) ⇒ Geocoder
constructor
A new instance of Geocoder.
Methods included from Collectable
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
#categories ⇒ Object (readonly)
Returns the value of attribute categories.
7 8 9 |
# File 'lib/epok/geocoder.rb', line 7 def categories @categories end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
7 8 9 |
# File 'lib/epok/geocoder.rb', line 7 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
7 8 9 |
# File 'lib/epok/geocoder.rb', line 7 def y @y end |