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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6eb511fe3c5466fc74ac6593c88a39382d676b58
4
- data.tar.gz: e784db97640b5916d2a265bded141d32f6293cff
3
+ metadata.gz: eb0a9de4da870a75d50edd62ac867fb783f0e879
4
+ data.tar.gz: c6565dc9f2f9ef447b0db8299d1ca9c80787ccbd
5
5
  SHA512:
6
- metadata.gz: 0a1bdfd8384c55740569d5f0a3e0b06f7509bb4108fe22e35b82eb29b7f2fac55511448d1c04e19d792f7a7d4b140b321a472547cad5316e24fdf83e57fb9455
7
- data.tar.gz: 6dfeee7c2ecc5bb796ea8fe8bf33577873767ada7f5d666a80296c45c2168cf3266cd0c3e1a3875e955f74410273f40271e07d776d7948aa631edb4c89b8a322
6
+ metadata.gz: a6e055aed3ab6d482c85d22d8b32baeb4e626c22ee8fd8c1b78eb115b23c34e1a2abda4728da9c406d0d3211a0889be25af8aba386ef985ea6153d719893eb50
7
+ data.tar.gz: 73242786a9236bf9bbf07b4401e160ee94a4a24b83b161699769c7467e3695eef889b48aed9b508cc49f58363cd58752a3fc535eb672b9d2cb1e111adda5be63
@@ -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
@@ -1,3 +1,3 @@
1
1
  module PQSDK
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promoqui-api-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Boffa