I am using databasedotcom gem for interacting with salesforce. I am able to get sObject(Account,Contact,Lead) info. Can any one tell me how to get the user info by passing salesforce session id.
Below code is used to get Account detail from salesforce, but i need to retrieve User info based on session id
client = Databasedotcom::Client.new("config/databasedotcom.yml")
client.authenticate :username => 'xxxxxx', :password => 'xxxxx'
client.sobject_module =SFDC_Models
client.materialize("Account")
@acc = SFDC_Models::Account.all