Skip to content

Instantly share code, notes, and snippets.

@robins35
Created April 14, 2015 19:04
Show Gist options
  • Save robins35/d89401da98617c74fccf to your computer and use it in GitHub Desktop.
Save robins35/d89401da98617c74fccf to your computer and use it in GitHub Desktop.
module SFDC_Models
module Connection
SF_CONFIG = YAML.load_file('config/databasedotcom.yml') rescue nil
def self.client
@client = Databasedotcom::Client.new("config/databasedotcom.yml")
@client.authenticate username: SF_CONFIG['username'], password: SF_CONFIG['password']
@client.materialize("Lead")
@client.materialize("Account")
@client.materialize("Contact")
@client
end
end
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment