Class: Jibeset::API

Inherits:
Object
  • Object
show all
Includes:
Connection, OAuth, Request
Defined in:
lib/jibeset/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from OAuth

#authorize_url, #get_access_token

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



12
13
14
15
16
17
# File 'lib/jibeset/api.rb', line 12

def initialize(options={})
  options = Jibeset.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end