databasedotcom 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +7 -0
- data/lib/databasedotcom/sobject/sobject.rb +8 -0
- data/lib/databasedotcom/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -15,6 +15,13 @@ Reference documentation is available at rubydoc.info[http://rubydoc.info/github/
|
|
15
15
|
|
16
16
|
Source is available at github[http://github.com/heroku/databasedotcom]
|
17
17
|
|
18
|
+
= Contributions
|
19
|
+
|
20
|
+
To contribute, fork this repo, make changes in your fork, then send a pull request. No pull requests without accompanying tests will be accepted. To run tests in your fork, just do
|
21
|
+
|
22
|
+
bundle install
|
23
|
+
rake
|
24
|
+
|
18
25
|
= Usage
|
19
26
|
== Initialization
|
20
27
|
When you create a Databasedotcom::Client object, you need to configure it with a client id and client secret that corresponds to one of the Remote Access Applications configured within your Salesforce instance. The Salesforce UI refers to the client id as "Consumer Key", and to the client secret as "Consumer Secret".
|
@@ -19,6 +19,14 @@ module Databasedotcom
|
|
19
19
|
self.attributes=(attrs)
|
20
20
|
end
|
21
21
|
|
22
|
+
# Returns a hash representing the state of this object
|
23
|
+
def attributes
|
24
|
+
self.class.attributes.inject({}) do |hash, attr|
|
25
|
+
hash[attr] = self.send(attr.to_sym)
|
26
|
+
hash
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
22
30
|
# Set attributes of this object, from a hash, in bulk
|
23
31
|
def attributes=(attrs)
|
24
32
|
attrs.each do |key, value|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: databasedotcom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.4
|
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-10
|
13
|
+
date: 2011-11-10 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: multipart-post
|