caren-api 0.6.10 → 0.6.11
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.
- data/VERSION +1 -1
- data/caren-api.gemspec +1 -1
- data/lib/caren/store/account.rb +4 -4
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.11
|
data/caren-api.gemspec
CHANGED
data/lib/caren/store/account.rb
CHANGED
|
@@ -17,19 +17,19 @@ class Caren::Store::Account < Caren::Base
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
def deposit_credits amount, session
|
|
20
|
-
session.post self.class.deposit_credits_url(self.id), amount_xml(amount)
|
|
20
|
+
self.class.from_xml session.post self.class.deposit_credits_url(self.id), amount_xml(amount)
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def withdraw_credits amount, session
|
|
24
|
-
session.post self.class.withdraw_credits_url(self.id), amount_xml(amount)
|
|
24
|
+
self.class.from_xml session.post self.class.withdraw_credits_url(self.id), amount_xml(amount)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def self.reserve_credits caren_event, session
|
|
28
|
-
session.post reserve_credits_url, caren_event.to_xml
|
|
28
|
+
from_xml session.post reserve_credits_url, caren_event.to_xml
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def self.release_credits caren_event, session
|
|
32
|
-
session.post release_credits_url, caren_event.to_xml
|
|
32
|
+
from_xml session.post release_credits_url, caren_event.to_xml
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def self.array_root
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: caren-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 11
|
|
10
|
+
version: 0.6.11
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andre Foeken
|