SFDO-API 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -5
- data/lib/SFDO/API.rb +5 -0
- data/lib/SFDO/API/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e4fb8c9db613614f675fc0157594bcb6751911c
|
4
|
+
data.tar.gz: 22e020c4781a686dab58dae5fe6722ac6a9bb91f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e8553ee5611a0ebc8063aca224324a79cef8b75e52bf2b8b83aec93e9d8ee8b829bf254b04114ec18edd7cd5fcc9b8dee4071324b8a76bdea1e87be47a9ec25
|
7
|
+
data.tar.gz: f473ab15546f20136c93ce91f136e17092fc6e72350dd3ab8afee3bfd9b6dadc798c0fbb9f2012a411b22c748f50ff32047c6e98e0ce077b5aefe1584b8fd3c3
|
data/README.md
CHANGED
@@ -80,17 +80,14 @@ To delete all instances of an object
|
|
80
80
|
|
81
81
|
### Custom Objects
|
82
82
|
|
83
|
-
To create instances of custom objects
|
83
|
+
To create instances of custom objects do not use any namespace value, SFDO-API does that for you
|
84
84
|
|
85
85
|
```ruby
|
86
86
|
def create_gau_via_api(gau_name)
|
87
|
-
@gau_id = create
|
87
|
+
@gau_id = create 'General_Accounting_Unit__c', Name: gau_name
|
88
88
|
end
|
89
89
|
```
|
90
90
|
|
91
|
-
NOTE: in the future we will remove the need to use true_object_name() from calling code when creating and selecting custom objects,
|
92
|
-
but for now this is how it works.
|
93
|
-
|
94
91
|
When using delete_one_foo or delete_all_foo do not use any namespace value, SFDO-API does that for you
|
95
92
|
|
96
93
|
```ruby
|
data/lib/SFDO/API.rb
CHANGED
@@ -12,6 +12,7 @@ module SfdoAPI
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def create(type, obj_hash)
|
15
|
+
type = true_object_name(type)
|
15
16
|
if is_valid_obj_hash?(type, obj_hash, @fields_acceptibly_nil)
|
16
17
|
obj_id = api_client do
|
17
18
|
@api_client.create! type, obj_hash
|
@@ -116,6 +117,10 @@ module SfdoAPI
|
|
116
117
|
when /^delete_one/
|
117
118
|
delete obj_type, *args
|
118
119
|
when /^create_/
|
120
|
+
create obj_type, *args
|
121
|
+
when /^update/
|
122
|
+
#TODO
|
123
|
+
when /^select/
|
119
124
|
#TODO
|
120
125
|
else
|
121
126
|
super.method_missing
|
data/lib/SFDO/API/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: SFDO-API
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris McMahon
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-09-
|
12
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|