Method: Howcast::Client#initialize
- Defined in:
- lib/howcast/client/base.rb
#initialize(options = {}) ⇒ Client
Creates a new howcast client to interact with the Howcast API
Inputs
Options include:
-
key
– REQUIRED - API key: obtainable from www.howcast.com/api_keys/new
Exceptions
-
Howcast::ApiKeyNotFound
– raised if the options value is nil
49 50 51 52 |
# File 'lib/howcast/client/base.rb', line 49 def initialize(={}) raise Howcast::ApiKeyNotFound if [:key].nil? @key = [:key] end |