lucid_shopify-resource 0.7.3 → 0.7.4
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 +1 -1
- 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: 7db152ebdf2241dc8a90e755adec8893f92d9bc0f8c36c785cccf98822395ab6
|
4
|
+
data.tar.gz: bf81c29d8deb7022ac9d48106b40ba7bfc9157310e8284b3be7b4c16f974820a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d7e76b1ab5b6d4ebac5d578e4e4c22ee5ba7af5b75ea821c30fccce9c016963cb817ba0a1ddfb4044eb63c66c309588115a53b0101841e53733413317cdcff2
|
7
|
+
data.tar.gz: 6e3505619779c550ee4cd2ae2a91f688402095fc20a673ffb1c241343fb5f51b42d0171a7d6aaeb5954cec253f25ec0f9a1cd86817725ea42363c5962d54cea3
|
@@ -26,7 +26,7 @@ module LucidShopify
|
|
26
26
|
# @return [Integer] the new ID
|
27
27
|
#
|
28
28
|
def create(credentials, data)
|
29
|
-
data = client.post_json(credentials, resource, resource_singular => data)
|
29
|
+
data = client.post_json(credentials, resource, resource_singular => data).to_h
|
30
30
|
|
31
31
|
data.dig(resource_singular, 'id').tap do |id|
|
32
32
|
logger.info("Created #{resource_singular} id=#{id}")
|