processout 2.2.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd7985fd921d5623bedc7d113b903bcd9cb6433d
4
- data.tar.gz: 4c1ccf76fa631b0ae8231695b5e5c1bd33f963f8
3
+ metadata.gz: a08f18d7c9a787ab4794501e332628431601980c
4
+ data.tar.gz: b036f6e257b82406f466ba76a4ec50faec27769f
5
5
  SHA512:
6
- metadata.gz: ab4dfedb1e2b7d75bf507ad4de1322aba80adee74ae5a21064925227c5e70da5de64f0b2cda18e289ab5f3bc2a9662dcb2a33bbba8194a899e3dbe7ce101d5dd
7
- data.tar.gz: a205c030187a0d55352b20d074efbe1e42e27ab5b2385cde13148d4ee4f2019a6f2b4d56492227d375693d13436ec9186560dc64d63a3cf0f709dd70b1a532fb
6
+ metadata.gz: cb9b7e4c8b528a7574296addc11e81451b3df458f946c042180c50eea95bbb2b7233ca59784051c504879796c7b1d0fde1fb9adb7d8ef0217497966243333f70
7
+ data.tar.gz: cc62c9da4980ffeec11b3f448fedededc2d68a38249f5f25db2cd5f836388ae5351c8da612a94ee66be45be5cd31734b126991592cfa603d6e7e83a8b68759fe
@@ -12,6 +12,7 @@ module ProcessOut
12
12
  attr_reader :type
13
13
  attr_reader :bank_name
14
14
  attr_reader :brand
15
+ attr_reader :category
15
16
  attr_reader :country
16
17
 
17
18
 
@@ -35,6 +36,10 @@ module ProcessOut
35
36
  @brand = val
36
37
  end
37
38
 
39
+ def category=(val)
40
+ @category = val
41
+ end
42
+
38
43
  def country=(val)
39
44
  @country = val
40
45
  end
@@ -52,6 +57,7 @@ module ProcessOut
52
57
  self.type = data.fetch(:type, nil)
53
58
  self.bank_name = data.fetch(:bank_name, nil)
54
59
  self.brand = data.fetch(:brand, nil)
60
+ self.category = data.fetch(:category, nil)
55
61
  self.country = data.fetch(:country, nil)
56
62
 
57
63
  end
@@ -83,6 +89,9 @@ module ProcessOut
83
89
  if data.include? "brand"
84
90
  self.brand = data["brand"]
85
91
  end
92
+ if data.include? "category"
93
+ self.category = data["category"]
94
+ end
86
95
  if data.include? "country"
87
96
  self.country = data["country"]
88
97
  end
@@ -102,6 +111,7 @@ module ProcessOut
102
111
  self.type = data.fetch(:type, self.type)
103
112
  self.bank_name = data.fetch(:bank_name, self.bank_name)
104
113
  self.brand = data.fetch(:brand, self.brand)
114
+ self.category = data.fetch(:category, self.category)
105
115
  self.country = data.fetch(:country, self.country)
106
116
 
107
117
  self
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: processout
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel HUEZ
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-14 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.6.8
129
+ rubygems_version: 2.5.2
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Ruby bindings for the ProcessOut API