Juan Hernandez has submitted this change and it was merged.
Change subject: Add generic writer
......................................................................
Add generic writer
Currently the SDK doesn't have any mechanism to generate an XML document
from an object whose type isn't known. This patch adds a new
'Writer.write' method that decides what is the specific writer to use
based on the type of the object, so that the caller doesn't need to
explicitly select it.
Change-Id: I0f6f8af923253707e55b98f04f3407105dc529b4
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M generator/src/main/java/org/ovirt/sdk/ruby/WritersGenerator.java
M sdk/lib/ovirtsdk4/writer.rb
M sdk/spec/writer_spec.rb
3 files changed, 149 insertions(+), 0 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/63131
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0f6f8af923253707e55b98f04f3407105dc529b4
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine-sdk-ruby
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Ondra Machacek <omachace(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>