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:

Exceptions

  • Howcast::ApiKeyNotFound – raised if the options value is nil



49
50
51
52
# File 'lib/howcast/client/base.rb', line 49

def initialize(options={})
  raise Howcast::ApiKeyNotFound if options[:key].nil?
  @key = options[:key]
end