databasedotcom 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/databasedotcom/client.rb +6 -0
- data/lib/databasedotcom/version.rb +1 -1
- metadata +2 -2
@@ -147,6 +147,12 @@ module Databasedotcom
|
|
147
147
|
classes.length == 1 ? classes.first : classes
|
148
148
|
end
|
149
149
|
|
150
|
+
# Returns an Array of Hashes listing the properties for every type of _Sobject_ in the database. Raises SalesForceError if an error occurs.
|
151
|
+
def describe_sobjects
|
152
|
+
result = http_get("/services/data/v#{self.version}/sobjects")
|
153
|
+
JSON.parse(result.body)["sobjects"]
|
154
|
+
end
|
155
|
+
|
150
156
|
# Returns a description of the Sobject specified by _class_name_. The description includes all fields and their properties for the Sobject.
|
151
157
|
def describe_sobject(class_name)
|
152
158
|
result = http_get("/services/data/v#{self.version}/sobjects/#{class_name}/describe")
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: databasedotcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Glenn Gillen, Danny Burkes & Richard Zhao
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-02 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multipart-post
|