item_builder_mwh 0.1.46 → 0.1.47

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bce7977aea75ad1bd97df14619406111699aa96e40346f29396223733a6aeeda
4
- data.tar.gz: b28d83dc417c3b56c987e24b1b430121f5f93e28fa8022d2cdad4a809b8ef189
3
+ metadata.gz: 4fcf40ca468a06cfbfba282400c026b98a98549ac95b5c355b219613f80809e4
4
+ data.tar.gz: 2f67bbbe6492e65abac33573c07f02f1b734e069660e8bb80e6e1c3a9ff2453c
5
5
  SHA512:
6
- metadata.gz: 7009a572231c435b5de10d7c10ef7083feba8ac5c48d949703095bbfadaffcc31d94d5b8bba26d43735960e7735b8062ffd704fe58f369e68cfc401a30b51338
7
- data.tar.gz: 4c5785354cd3100bb785a010570734697c1b8e14bfb867bd4eac1f572b3c51601f64a6524e0bb09951f24216f62f58427a81fa344a7dea19adea6b4c8a058ee5
6
+ metadata.gz: 35848b583b002229004c80aad457dcc3b45d8d938b066258cf9449f7cc457712d023ba3fed2939e0cf0aedbee4960e12250778dc04c8b743d9e1bcd8cc095ffb
7
+ data.tar.gz: 7ea2198492cc024d6d10ef7d6853b9f9f5064cb6043636f6b4f04d29c0b6b3c2a9fd47164480b970ef16fc7e2e6934ae52dfa66fa91d823caf2a1b609effac95
@@ -12,7 +12,8 @@ class ItemBuilderMwh
12
12
  new_condition: listing.new_condition,
13
13
  minimum_order: listing.minimum_order,
14
14
  etalase_id: listing.tokopedia_showcase_id,
15
- master_option_types: master_option_types
15
+ master_option_types: master_option_types,
16
+ images: images
16
17
  }
17
18
  end
18
19
 
@@ -36,6 +37,17 @@ class ItemBuilderMwh
36
37
  .pluck(:name)
37
38
  .map{|name| YAML.load(name)}
38
39
  end
40
+
41
+ def images
42
+ listing.item_listing_variant_images.map do |img|
43
+ {
44
+ id: img.id,
45
+ local_id: img.local_id,
46
+ local_url: img.local_url,
47
+ url: img.image.image.url(:xlarge, timestamp: false)
48
+ }
49
+ end
50
+ end
39
51
  end
40
52
  end
41
53
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ItemBuilderMwh
4
- VERSION = '0.1.46'
4
+ VERSION = '0.1.47'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: item_builder_mwh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.46
4
+ version: 0.1.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ivander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-30 00:00:00.000000000 Z
11
+ date: 2022-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler