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.
| 13 14 15 | # File 'lib/kamelopard/geocode.rb', line 13 def initialize @params = {} end | 
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
| 12 13 14 | # File 'lib/kamelopard/geocode.rb', line 12 def host @host end | 
#params ⇒ Object
Returns the value of attribute params.
| 12 13 14 | # File 'lib/kamelopard/geocode.rb', line 12 def params @params end | 
#path ⇒ Object
Returns the value of attribute path.
| 12 13 14 | # File 'lib/kamelopard/geocode.rb', line 12 def path @path end | 
Instance Method Details
#parse_response(r) ⇒ Object
| 17 18 19 | # File 'lib/kamelopard/geocode.rb', line 17 def parse_response(r) raise "Unimplemented -- use a child of the Geocoder class" end |