Class: Simpl

Inherits:
Object
  • Object
show all
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

Class Attribute Details

.api_keyObject



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

.timeoutObject

how long to wait for Goo.gl response default: 10



20
21
22
# File 'lib/simpl.rb', line 20

def timeout
  @timeout
end