Method: Wonderfl::Client#initialize
- Defined in:
- lib/wonderfl/client.rb
#initialize(api_key = nil, options = {}) ⇒ Client
Requires api key, get yours from your account page (wonderfl.net/account/api_keys/create)
9 10 11 12 13 |
# File 'lib/wonderfl/client.rb', line 9 def initialize(api_key = nil, = {}) @api_key = api_key @cache = Wonderfl::Utils::Cache.new([:cache_file], [:expire]) end |