Method: CPEE::Properties::PutTransformation.set
- Defined in:
- lib/cpee/implementation_properties.rb
.set(id, opts, xml) ⇒ Object
{{{
692 693 694 695 696 697 698 699 700 701 702 703 |
# File 'lib/cpee/implementation_properties.rb', line 692 def self::set(id,opts,xml) doc = XML::Smart::string(xml) doc.register_namespace 'p', 'http://cpee.org/ns/properties/2.0' CPEE::Persistence::set_item(id,opts,'transformation', :description => doc.find('string(/p:transformation/p:description)'), :description_type => doc.find('string(/p:transformation/p:description/@type)'), :dataelements =>doc.find('string(/p:transformation/p:dataelements)'), :dataelements_type => doc.find('string(/p:transformation/p:dataelements/@type)'), :endpoints =>doc.find('string(/p:transformation/p:endpoints)'), :endpoints_type => doc.find('string(/p:transformation/p:endpoints/@type)') ) end |