Class: SalesforceChatter::API

Inherits:
Object
  • Object
show all
Includes:
Authentication, Connection, Request
Defined in:
lib/salesforce-chatter/api.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Methods included from Authentication

#authenticate, #authenticated?, #authentication

Methods included from Request

#get, #post

Constructor Details

#initialize(options = {}) ⇒ API

Creates a new API



12
13
14
15
16
17
18
# File 'lib/salesforce-chatter/api.rb', line 12

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