Class: SalesforceConnector::User
Class Method Summary
collapse
Methods inherited from OauthObject
describe_sobject, query, root_url, set_headers, sobjects
Class Method Details
.find(str) ⇒ Object
8
9
10
11
12
|
# File 'lib/salesforce_connector/user.rb', line 8
def self.find(str)
self.
result = get(self.root_url+"/sobjects/User/#{CGI::escape(str)}")
return result.parsed_response || []
end
|
.get_first_hundred ⇒ Object
4
5
6
|
# File 'lib/salesforce_connector/user.rb', line 4
def self.get_first_hundred
User.query('SELECT Name, Id from User LIMIT 100')
end
|