polyrex-objects 0.6.16 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c097213513006be1ea150bc41039c6cdfb621aba
4
- data.tar.gz: 870b71afec3bd9397ad22639b4c53d751fadb2ae
3
+ metadata.gz: 8be9a175fce448a0b97e1f693d91bc7739359edc
4
+ data.tar.gz: 2f0217b94fdca1e5bd9f4e18a0c2df2a4dd05185
5
5
  SHA512:
6
- metadata.gz: c49caf766d73cf470447112bc011edec9d2e68fcae68b997f02accaca13db3cb30a0d8a347332aeed294aa3a881725e8227bbbeb1693969767a20cf9e01098c7
7
- data.tar.gz: a827acecb23377d7d0fd5b0cb8cf3a17544e86da77f88b5fff77338a08baadc386ff90c3e48edc8a58f5960d0153ca405d2ecc64aa481704a628458a627d00bb
6
+ metadata.gz: 035124e87728dd5ed2b61d052726944eddc8e6dad8a5eaa4da5e3b5bb72e51021ff788831fc85e45e79f0ca2587135f592f3be3afa49c1bfbb8cf5c55e388912
7
+ data.tar.gz: 739723976ef69b1a58a10a62acfb8c1e74f1d48adfa8cf0fa30fd497d5dfeca495715d341a5f93634a7ee3facc3700cff82691a0ea02ab15e7e7931d0f5913ab
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- 62KusR
2
- �Bg�E�ꟶ+Hp�D�0�%E]L�n��-���v�G/^�� ���H�cYyf��� ����IW7�
1
+ ��8��4�z�RF7JË9�Ո}���Ax�VL�M��Z4��������Z�!�Re��<w�y���OS ٕr&�j�=X� �R�ˏ�H��=x�J��H�c� y����qh���
@@ -9,7 +9,9 @@ require 'rexle'
9
9
 
10
10
  class PolyrexObjects
11
11
 
12
- class PolyrexObject
12
+ class PolyrexObject
13
+
14
+ attr_reader :node
13
15
 
14
16
  def initialize(node, id='0')
15
17
  @@id = id
@@ -18,7 +20,7 @@ class PolyrexObjects
18
20
  end
19
21
 
20
22
  def add(pxobj)
21
- self.create.method(pxobj.class.to_s[/[^:]+$/].downcase).call(pxobj.to_h)
23
+ @node.element('records').add pxobj.node
22
24
  end
23
25
 
24
26
  def create(id=nil)
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.16
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file