wirecardmapper 0.10.0 → 0.10.1

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.
@@ -30,7 +30,7 @@ module WirecardMapper
30
30
  reload_card_info_cache
31
31
  transaction_log("change_card_status", response)
32
32
  raise WirecardMapper::Exception, "Wirecard-System[ERROR]: #{response.return_message}" unless response.ok?
33
- update_card_status
33
+ update_status_cache
34
34
  end
35
35
  return response
36
36
  end
@@ -72,7 +72,7 @@ module WirecardMapper
72
72
  end
73
73
 
74
74
  def status
75
- self.respond_to?(:status=) && @status.present? ? @status : card_info.status_code
75
+ self.respond_to?(:status_cache) && self.status_cache.present? ? self.status_cache : card_info.status_code
76
76
  end
77
77
 
78
78
  def balance
@@ -117,8 +117,8 @@ module WirecardMapper
117
117
  @card_info = nil
118
118
  end
119
119
 
120
- def update_card_status
121
- self.update_attribute(:status, card_info.status_code) if self.respond_to?(:status=)
120
+ def update_status_cache
121
+ self.update_attribute(:status_cache, card_info.status_code) if self.respond_to?(:status_cache=)
122
122
  end
123
123
 
124
124
  end
@@ -1,3 +1,3 @@
1
1
  module WirecardMapper
2
- Version = '0.10.0'
2
+ Version = '0.10.1'
3
3
  end
@@ -29,7 +29,7 @@ describe WirecardMapper::Model::MongoMapper, :vcr do
29
29
  key :card_id, String
30
30
  key :number, String
31
31
  key :security_code, Integer
32
- key :status, String
32
+ key :status_cache, String
33
33
  end
34
34
  end
35
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wirecardmapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: