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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4a75126feaa5016d2f3d95f7a575e7fd227a896
4
- data.tar.gz: 8fa76a68941a9bc80f47f5cc99299441d889a75d
3
+ metadata.gz: 78222bf7f9a5fd5ff01cec3a596b22225bd3bedd
4
+ data.tar.gz: 3258bf1781f3e6554a6187119c944e70fc82ed74
5
5
  SHA512:
6
- metadata.gz: b34d327e6b993e51d5ec6188b4acba030fa7fc92a138a6b22aeb67b70ee5170e19f1d8f592675b0b64146d66bcf330700644e10adc172c58a44e2f5e01d88ac3
7
- data.tar.gz: 9120bb5df77af02de188f82080400b9762e35ddc77483e37b792e5d2707cc0b0fe900f6afa66ce64758df91d38ea77f8262e4b375a1ce4761f3acaeea8d526ad
6
+ metadata.gz: ea9ac41a42369d62627bb6bc877357149e5166d96b1ec8dc6c29777df24d41e99f4b9b172c86a896cdb299c8dc8312aac54df7d939083e0507e96c104183ade4
7
+ data.tar.gz: e63362345eb3430585f8ad72124c30a94359a68307e94aec9f2d530a24c9f4009a6fc4ab6efc28fc9e97b5267c3fdf540b4dcf0c60dd8349e52e4057cbd9fd6a
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ProcessOut
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
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: 1.0.3
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-18 00:00:00.000000000 Z
11
+ date: 2016-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler