printaura 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2c76c60c051df4033ad8fcda8b6fc1cab474b8f
4
- data.tar.gz: be5bbe1c43f325e6edffa4925f6348e621a159fa
3
+ metadata.gz: f5c38640a354d5ef950f1505051e5261c253d9fd
4
+ data.tar.gz: 7bf76bc161183ff8057bd7ab5cf5af2fdb30f04c
5
5
  SHA512:
6
- metadata.gz: 069efe702c5a9d0906ca34c015aaded46b4d0e34c11d83e73bc2142a38951048587c51deca75973a08a3fa2ee616fe7d479067780fe3cbb538f08f246ff18a9c
7
- data.tar.gz: 921e9a03b87cd2797f1c241809fa2fd8632172a24eae277db4be32819688db8be04f7c40e64f6db4ef8425c5f80b3d447001346a4d4805d19dd68a660c07a91f
6
+ metadata.gz: a4a964740344f6cfe53a435a71b9404856cbad79492189ca064b7cd771a63f03c400ff1b298d502f7fbf0cba4bce0738c6108868e4ff31e5a7440b9197a5ec5d
7
+ data.tar.gz: 4d959077f7e3dba6f9eb5bccdf4950e9d4bde70634baa57c324989f4d448cd7e80248ed5f4334301433cafff232bbdd043d4f1de294ed2cc9399ec28eabad30c
@@ -2,6 +2,9 @@ require "printaura/api"
2
2
 
3
3
  module Printaura
4
4
  class Product
5
+ attr_accessor :shopify_product_id
6
+ attr_accessor :printaura_product_id
7
+
5
8
  def self.all
6
9
  # do i care?
7
10
  Api.viewproducts.each do |prod|
@@ -16,7 +19,8 @@ module Printaura
16
19
  if shopify
17
20
  args = args.merge(shopify)
18
21
  end
19
- Api.addproduct(args)
22
+ @shopify_product_id = Api.addproduct(args)["results"]["shopify_id"]
23
+ @printaura_product_id = Api.addproduct(args)["results"]["product_id"]
20
24
  end
21
25
  end
22
26
  end
@@ -1,3 +1,3 @@
1
1
  module Printaura
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: printaura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - oren mazor