processout 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/processout/token.rb +9 -0
- data/lib/processout/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: 78222bf7f9a5fd5ff01cec3a596b22225bd3bedd
|
4
|
+
data.tar.gz: 3258bf1781f3e6554a6187119c944e70fc82ed74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea9ac41a42369d62627bb6bc877357149e5166d96b1ec8dc6c29777df24d41e99f4b9b172c86a896cdb299c8dc8312aac54df7d939083e0507e96c104183ade4
|
7
|
+
data.tar.gz: e63362345eb3430585f8ad72124c30a94359a68307e94aec9f2d530a24c9f4009a6fc4ab6efc28fc9e97b5267c3fdf540b4dcf0c60dd8349e52e4057cbd9fd6a
|
data/lib/processout/token.rb
CHANGED
@@ -10,6 +10,7 @@ module ProcessOut
|
|
10
10
|
attr_reader :id
|
11
11
|
attr_reader :customer
|
12
12
|
attr_reader :card
|
13
|
+
attr_reader :type
|
13
14
|
attr_reader :metadata
|
14
15
|
attr_reader :is_subscription_only
|
15
16
|
attr_reader :created_at
|
@@ -41,6 +42,10 @@ module ProcessOut
|
|
41
42
|
|
42
43
|
end
|
43
44
|
|
45
|
+
def type=(val)
|
46
|
+
@type = val
|
47
|
+
end
|
48
|
+
|
44
49
|
def metadata=(val)
|
45
50
|
@metadata = val
|
46
51
|
end
|
@@ -64,6 +69,7 @@ module ProcessOut
|
|
64
69
|
@id = data.fetch(:id, "")
|
65
70
|
@customer = data.fetch(:customer, nil)
|
66
71
|
@card = data.fetch(:card, nil)
|
72
|
+
@type = data.fetch(:type, "")
|
67
73
|
@metadata = data.fetch(:metadata, Hash.new)
|
68
74
|
@is_subscription_only = data.fetch(:is_subscription_only, false)
|
69
75
|
@created_at = data.fetch(:created_at, "")
|
@@ -88,6 +94,9 @@ module ProcessOut
|
|
88
94
|
if data.include? "card"
|
89
95
|
self.card = data["card"]
|
90
96
|
end
|
97
|
+
if data.include? "type"
|
98
|
+
self.type = data["type"]
|
99
|
+
end
|
91
100
|
if data.include? "metadata"
|
92
101
|
self.metadata = data["metadata"]
|
93
102
|
end
|
data/lib/processout/version.rb
CHANGED
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: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel HUEZ
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|