Class: Simpl
- Inherits:
-
Object
- Object
- Simpl
- Defined in:
- lib/simpl.rb,
lib/simpl/url.rb,
lib/simpl/version.rb
Defined Under Namespace
Classes: NoApiKeyError, Url
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
- .api_key ⇒ Object
-
.timeout ⇒ Object
how long to wait for Goo.gl response default: 10.
Class Attribute Details
.api_key ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/simpl.rb', line 10 def api_key @api_key || (raise NoApiKeyError, %Q( No Goo.gl API key is present, please set one using: # if you're using Rails put this in config/initializers/googl.rb Googl.api_key = 'YOUR_KEY_HERE' )) end |
.timeout ⇒ Object
how long to wait for Goo.gl response default: 10
20 21 22 |
# File 'lib/simpl.rb', line 20 def timeout @timeout end |