lucid_shopify-resource 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid_shopify/resource/create.rb +2 -2
- data/lib/lucid_shopify/resource/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4c431cb8ad48ce3a734093446081a002683f1b34c46aa8acc267b8465ba7781
|
4
|
+
data.tar.gz: e5f577b37f11fff8d62244708e88970f6d032a488f2f750b108560712f7fadad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246948304c3ec0f3d381f747e68c76ae1a1f3bd843e3b466607f31bec9915c53ef82dfa387dbbd2308e0c03499a8f6c236747444606cecfe4eca79a9c7d9bfd4
|
7
|
+
data.tar.gz: 7e1f37ddf1b44fe76d24dd543df3e9397dfecec18029dd7850f7181823510a948f5587a91a33754fbfae1e1c4ebbdecd99360f2cbabe45d589765df33dc79263
|
@@ -26,9 +26,9 @@ module LucidShopify
|
|
26
26
|
# @return [Integer] the new ID
|
27
27
|
#
|
28
28
|
def create(credentials, data)
|
29
|
-
|
29
|
+
data = client.post_json(credentials, resource, resource_singular => data)
|
30
30
|
|
31
|
-
|
31
|
+
data.dig(resource_singular, 'id').tap do |id|
|
32
32
|
logger.info("Created #{resource_singular} id=#{id}")
|
33
33
|
end
|
34
34
|
end
|