Class: GeoApi::Configuration
- Inherits:
-
Object
- Object
- GeoApi::Configuration
- Defined in:
- lib/geo_api/configuration.rb
Instance Method Summary collapse
Instance Method Details
#key ⇒ Object
12 13 14 |
# File 'lib/geo_api/configuration.rb', line 12 def key @key ||= "test_key" end |
#key=(key) ⇒ Object
16 17 18 |
# File 'lib/geo_api/configuration.rb', line 16 def key=(key) @key = key end |
#server ⇒ Object
4 5 6 |
# File 'lib/geo_api/configuration.rb', line 4 def server @server ||= "http://apis.map.qq.com/ws/geocoder/v1" end |
#server=(server) ⇒ Object
8 9 10 |
# File 'lib/geo_api/configuration.rb', line 8 def server=(server) @server = server end |