bing-content-api 0.2.2 → 0.3.0
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/bing/content/api/product.rb +6 -1
- data/lib/bing/content/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0754b47634db79bb7fd49f92d02ca6b8cfbf00f7
|
|
4
|
+
data.tar.gz: 4dd57aba5f396f930445d6a6174a52c87f1a9f98
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff497a118cf29febf836f3c35de779b26aecf7cdda9362e5f4018e71dfc047d560f1261efbd93cbf1a981776835830722d5cc391344358011d78ea90006bc56c
|
|
7
|
+
data.tar.gz: 798a16c4c76dbeae42c710ac6bce123869b179cad2a01dc0aa3f3478123ce8bd61f37540dbad9a0ce8a53aac67cdd58e9072506fcb317a2bf29f2175b28065bb
|
|
@@ -2,7 +2,7 @@ module Bing
|
|
|
2
2
|
module Content
|
|
3
3
|
module Api
|
|
4
4
|
class Product
|
|
5
|
-
attr_accessor :offer_id, :title, :description, :price, :currency, :product_link, :image_link, :target_country, :content_language, :availability, :channel, :product_type, :product_category, :condition
|
|
5
|
+
attr_accessor :offer_id, :title, :description, :price, :currency, :product_link, :image_link, :target_country, :content_language, :availability, :channel, :product_type, :product_category, :condition, :custom_label_0, :custom_label_1, :custom_label_2, :custom_label_3, :custom_label_4
|
|
6
6
|
|
|
7
7
|
def bing_product_id
|
|
8
8
|
"#{@channel}:#{@content_language}:#{@target_country}:#{@offer_id}"
|
|
@@ -23,6 +23,11 @@ module Bing
|
|
|
23
23
|
"condition" => @condition,
|
|
24
24
|
"productType" => @product_type,
|
|
25
25
|
"googleProductCategory" => @product_category,
|
|
26
|
+
"customLabel0" => @custom_label_0,
|
|
27
|
+
"customLabel1" => @custom_label_1,
|
|
28
|
+
"customLabel2" => @custom_label_2,
|
|
29
|
+
"customLabel3" => @custom_label_3,
|
|
30
|
+
"customLabel4" => @custom_label_4,
|
|
26
31
|
}
|
|
27
32
|
end
|
|
28
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bing-content-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Paul David
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|