zoho_hub 0.1.17 → 0.1.18
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.
- checksums.yaml +4 -4
- data/lib/zoho_hub/records/base_record.rb +8 -3
- data/lib/zoho_hub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84262876f36fb21c0f0cb89d56d8dd531fef6828d72f54f38463861964cb5366
|
4
|
+
data.tar.gz: 494f4ced565252a8ee0cd04cfc982cf53c1bcaf2468227f9919ab24ee24856a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2196186030ca801f3ef0a9c3df47418cefab10b90a01ea3a477c4e411161e4adeea38a11428cd1d418af9039780604e5a8f53f8e286bb545a1dc23a6e99b7912
|
7
|
+
data.tar.gz: 582a600fb2751d0ee756b97f88cfe653643a6d37be0208564ba5b6b6d3c2e49ea76bbd3afdd074ca29181b485058b3b46675dbdd181ed73f0a134daa359270d4
|
@@ -121,12 +121,17 @@ module ZohoHub
|
|
121
121
|
self.class.put(path, params)
|
122
122
|
end
|
123
123
|
|
124
|
-
|
124
|
+
# Save the record to Zoho
|
125
|
+
# trigger: ['workflow', 'approval', 'blueprint']
|
126
|
+
def save(trigger:)
|
127
|
+
json = { data: [to_params] }
|
128
|
+
json[:trigger] = Array(trigger) if trigger
|
129
|
+
|
125
130
|
body = if new_record? # create new record
|
126
|
-
post(self.class.request_path,
|
131
|
+
post(self.class.request_path, json)
|
127
132
|
else # update existing record
|
128
133
|
path = File.join(self.class.request_path, id)
|
129
|
-
put(path,
|
134
|
+
put(path, json)
|
130
135
|
end
|
131
136
|
|
132
137
|
response = build_response(body)
|
data/lib/zoho_hub/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zoho_hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Otero
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|