caren-api 0.6.3 → 0.6.4
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/base.rb +4 -2
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.4
|
data/caren-api.gemspec
CHANGED
data/lib/caren/base.rb
CHANGED
|
@@ -73,8 +73,10 @@ class Caren::Base
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# Convert this object to XML
|
|
76
|
-
def to_xml options={}
|
|
77
|
-
|
|
76
|
+
def to_xml options={}, action=nil
|
|
77
|
+
base_hash = self.as_xml
|
|
78
|
+
base_hash = base_hash.merge( :action => action ) if action
|
|
79
|
+
base_hash.to_xml(options.merge( :root => (self.node_root || self.class.node_root) ))
|
|
78
80
|
end
|
|
79
81
|
|
|
80
82
|
# Overridable hash of attributes that is used for converting to XML.
|
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: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 6
|
|
9
|
-
-
|
|
10
|
-
version: 0.6.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.6.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Andre Foeken
|