salesforce_connector_light 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -22,13 +22,13 @@ module SalesforceConnector
|
|
22
22
|
def self.sobjects
|
23
23
|
self.set_headers
|
24
24
|
result = get(self.root_url+"/sobjects")
|
25
|
-
return result.parsed_response["sobjects"] ||
|
25
|
+
return result.parsed_response["sobjects"] || {}
|
26
26
|
end
|
27
27
|
|
28
28
|
def self.describe_sobject(str)
|
29
29
|
self.set_headers
|
30
30
|
result = get(self.root_url+"/sobjects/#{str.capitalize}/describe")
|
31
|
-
return result.parsed_response
|
31
|
+
return result.parsed_response || {}
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|