odata 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/odata/complex_type.rb +15 -0
- data/lib/odata/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41730d574103288a650b5b0a75ac63805f4882c7
|
4
|
+
data.tar.gz: 66dacc17716212d8c7a773d1c8b6570a6598bcb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1caeb2f264cb71cb220fe62f6e7da19475259901a350b106568588cb092816511267b33f8f1e11080b2dca1182115f870eb123a20c493ab2c40753e1156fd9e4
|
7
|
+
data.tar.gz: ad2dca3eeeb199520eaf5cd6b0057d1f340b85abc2bd9c617d8073a77cc2be65763e272693eb7162d3cc2623d6d10b02b52fbffd4a305dc63f0836d2287bb1c0
|
data/CHANGELOG.md
CHANGED
data/lib/odata/complex_type.rb
CHANGED
@@ -46,6 +46,21 @@ module OData
|
|
46
46
|
properties[property_name.to_s].value = value
|
47
47
|
end
|
48
48
|
|
49
|
+
# Returns the XML representation of the property to the supplied XML
|
50
|
+
# builder.
|
51
|
+
# @param xml_builder [Nokogiri::XML::Builder]
|
52
|
+
def to_xml(xml_builder)
|
53
|
+
attributes = {
|
54
|
+
'metadata:type' => type,
|
55
|
+
}
|
56
|
+
|
57
|
+
xml_builder['data'].send(name.to_sym, attributes) do
|
58
|
+
properties.each do |name, property|
|
59
|
+
property.to_xml(xml)
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
49
64
|
private
|
50
65
|
|
51
66
|
def service
|
data/lib/odata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: odata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Thompson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|