Module: EasyGeoIP
- Extended by:
- EasyGeoIP
- Included in:
- EasyGeoIP
- Defined in:
- lib/easy_geoip.rb,
lib/easy_geoip/error.rb,
lib/easy_geoip/client.rb,
lib/easy_geoip/version.rb,
lib/easy_geoip/geo_data.rb,
lib/easy_geoip/api/query.rb,
lib/easy_geoip/api/nekudo.rb,
lib/easy_geoip/api/telize.rb,
lib/easy_geoip/api/freegeoip.rb
Defined Under Namespace
Modules: API, Client Classes: Error, GeoData
Constant Summary collapse
- VERSION =
"0.1.0"
Instance Attribute Summary collapse
-
#api_service ⇒ Object
Returns the value of attribute api_service.
Instance Method Summary collapse
Instance Attribute Details
#api_service ⇒ Object
Returns the value of attribute api_service.
7 8 9 |
# File 'lib/easy_geoip.rb', line 7 def api_service @api_service end |
Instance Method Details
#configure(settings = {}) {|_self| ... } ⇒ Object
9 10 11 12 13 14 |
# File 'lib/easy_geoip.rb', line 9 def configure(settings = {}, &block) apply_configuration(settings) yield self if block true end |
#query(ip) ⇒ Object
16 17 18 |
# File 'lib/easy_geoip.rb', line 16 def query(ip) api.query(ip) end |