class SalesforceChatter::API

Public Class Methods

new(options={}) click to toggle source

Creates a new API

# 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