promoqui-api-sdk 1.7.2 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pqsdk/offer.rb +3 -5
- data/lib/pqsdk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb0a9de4da870a75d50edd62ac867fb783f0e879
|
4
|
+
data.tar.gz: c6565dc9f2f9ef447b0db8299d1ca9c80787ccbd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6e055aed3ab6d482c85d22d8b32baeb4e626c22ee8fd8c1b78eb115b23c34e1a2abda4728da9c406d0d3211a0889be25af8aba386ef985ea6153d719893eb50
|
7
|
+
data.tar.gz: 73242786a9236bf9bbf07b4401e160ee94a4a24b83b161699769c7467e3695eef889b48aed9b508cc49f58363cd58752a3fc535eb672b9d2cb1e111adda5be63
|
data/lib/pqsdk/offer.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
module PQSDK
|
2
2
|
class Offer
|
3
|
-
attr_accessor :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image, :store_ids
|
4
|
-
|
5
|
-
attr_accessor :national, :partner_link
|
6
|
-
attr_accessor :btn_other_offers_visible, :btn_partner_link_text, :btn_partner_link_visible, :btn_print_visible, :btn_stores_visible, :btn_online_offers_visible
|
3
|
+
attr_accessor :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image, :store_ids, :national, :partner_link,
|
4
|
+
:btn_other_offers_visible, :btn_partner_link_text, :btn_partner_link_visible, :btn_print_visible, :btn_stores_visible, :btn_online_offers_visible
|
7
5
|
|
8
6
|
def initialize(params = {})
|
9
7
|
params.each do |key, val|
|
@@ -19,7 +17,7 @@ module PQSDK
|
|
19
17
|
|
20
18
|
fields = {}
|
21
19
|
[ :title, :description, :price, :original_price, :discount, :start_date, :end_date, :brand, :image,
|
22
|
-
:national, :partner_link
|
20
|
+
:national, :partner_link,
|
23
21
|
:btn_other_offers_visible, :btn_partner_link_text, :btn_partner_link_visible, :btn_print_visible, :btn_stores_visible, :btn_online_offers_visible ].each do |key|
|
24
22
|
fields[key.to_s] = send(key) unless send(key).nil?
|
25
23
|
end
|
data/lib/pqsdk/version.rb
CHANGED