Class: Geocoder
- Inherits:
-
Object
- Object
- Geocoder
- Defined in:
- lib/kamelopard/geocode.rb
Overview
Geocoder base class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize ⇒ Geocoder
constructor
A new instance of Geocoder.
- #parse_response(r) ⇒ Object
Constructor Details
#initialize ⇒ Geocoder
Returns a new instance of Geocoder.
12 13 14 |
# File 'lib/kamelopard/geocode.rb', line 12 def initialize @params = {} end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/kamelopard/geocode.rb', line 11 def host @host end |
#params ⇒ Object
Returns the value of attribute params.
11 12 13 |
# File 'lib/kamelopard/geocode.rb', line 11 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
11 12 13 |
# File 'lib/kamelopard/geocode.rb', line 11 def path @path end |
Instance Method Details
#parse_response(r) ⇒ Object
16 17 18 |
# File 'lib/kamelopard/geocode.rb', line 16 def parse_response(r) raise "Unimplemented -- use a child of the Geocoder class" end |