dynarex 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. data/lib/dynarex.rb +7 -9
  2. metadata +1 -1
@@ -43,18 +43,16 @@ class Dynarex
43
43
  @summary.each{|key,value| xml.send key, value}
44
44
  end
45
45
  xml.records do
46
- @records.each do |item|
47
- xml.send @item_name do
48
- item.each do |key, value|
49
- xml.send key, value
50
- end
46
+ @records.each do |k, item|
47
+ xml.send(@item_name, id: item[:id], timestamp: item[:timestamp]) do
48
+ item[:body].each{|name,value| xml.send name, value}
51
49
  end
52
- end
50
+ end
53
51
  end
54
- end
55
-
52
+ end
53
+
56
54
  buffer
57
-
55
+
58
56
  end
59
57
 
60
58
  def open(location)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynarex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors: []
7
7