Class: SalesforceConnector::Profile

Inherits:
OauthObject show all
Defined in:
lib/salesforce_connector/profile.rb

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/profile.rb', line 8

def self.find(str)
  self.set_headers
  result = get(self.root_url+"/sobjects/Profile/#{CGI::escape(str)}")
  return result.parsed_response || []
end

.get_first_hundredObject



4
5
6
# File 'lib/salesforce_connector/profile.rb', line 4

def self.get_first_hundred
  Profile.query('SELECT Name, Id from Profile LIMIT 100')
end