Class: GeoAPI::Client
- Inherits:
-
Object
- Object
- GeoAPI::Client
- Defined in:
- lib/geoapi/client.rb
Class Method Summary collapse
Instance Method Summary collapse
- #api_key ⇒ Object
-
#initialize(api_key = nil) ⇒ Client
constructor
To connect to GeoAPI, either:.
Constructor Details
Class Method Details
.id_from_guid(guid, apikey) ⇒ Object
26 27 28 29 |
# File 'lib/geoapi/client.rb', line 26 def self.id_from_guid(guid,apikey) id = guid.sub('user-','') id = id.sub("#{apikey}-",'') end |
Instance Method Details
#api_key ⇒ Object
22 23 24 |
# File 'lib/geoapi/client.rb', line 22 def api_key @api_key end |