centralpos 0.2.1 → 0.2.2

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: 6a31ae6311bdbc1a904256ec4a5bf1acbe65d401
4
- data.tar.gz: dd62cf3627ee86ec29b38614828657bab8b29510
3
+ metadata.gz: 40af39ab5057cc4abe373ff5e1b2edb1ec7ec681
4
+ data.tar.gz: d8833a9f045ddc5aeea390b832db211f317c974f
5
5
  SHA512:
6
- metadata.gz: d1b56660a3ab1a96adbacd70dec6362a57f4793c734e7890d878c8c757d12ac13209b413cbf95cc27ac437622fa5566e75307aab6ce46669c91e3bc5cae3ae81
7
- data.tar.gz: 196ccb0468218b344ed35fc503a68e101c30ba96c2746d273f85732b9d06e0cca9ca65af05c4631f5db86f76727dd5beb56714b495d7a0f75fbfb249509d1940
6
+ metadata.gz: 514549d351970e5c83629ea166fb8dea54c81224c3fa4a1677454ddcb6dad636244daf47e8e2bb730c7b3f4e6a3bb38d69eb2f4a45d155a24af8fc0dc7fe84a4
7
+ data.tar.gz: 6e1693740b07fa466ad69f50b98472df43abd92f5ff3ad2b0b0db98a4ca9dfdc148fe1e076fa0fa48787044218902be3c79be358ee403f5534d300e89977d96a
@@ -19,17 +19,17 @@ module Centralpos
19
19
  new(data)
20
20
  end
21
21
 
22
- def initialize(owner_id:, cc_number:, amount:, optional_data_1: "", optional_data_2: "", applied:, message:, card_error_code:, **extras)
22
+ def initialize(owner_id:, cc_number:, amount:, optional_data_1: "", optional_data_2: "", **extras)
23
23
  @id = md5("#{owner_id}-#{cc_number}")
24
24
  @owner_id = owner_id.to_i
25
25
  @cc_number = cc_number
26
26
  @amount = amount.to_s
27
27
  @optional_data_1 = optional_data_1
28
28
  @optional_data_2 = optional_data_2
29
- @applied = applied
30
- @message = message
31
- @card_error_code = card_error_code
32
29
  @extras = extras
30
+ @applied = @extras[:applied]
31
+ @message = @extras[:message]
32
+ @card_error_code = @extras[:card_error_code]
33
33
  end
34
34
  UPDATABLE_VALUES.each do |key|
35
35
  define_method("#{key}=") do |value|
@@ -1,3 +1,3 @@
1
1
  module Centralpos
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: centralpos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Cavilliotti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-16 00:00:00.000000000 Z
11
+ date: 2017-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon