Class: Howkast::API

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/howkast/api.rb,
lib/howkast/base.rb

Constant Summary

Constants included from Base

Base::HOWCAST_BASE_URI

Instance Method Summary collapse

Methods included from Base

#configuration, included

Constructor Details

#initialize(opts = { }) ⇒ API

Returns a new instance of API.



32
33
34
35
# File 'lib/howkast/api.rb', line 32

def initialize opts = { }
  key = opts[:api_key]
  configuration.api_key = key if key
end