Class: Reactor::Cm::Obj::ContentSetRequest
- Defined in:
- lib/reactor/cm/obj.rb
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
Methods inherited from Request
Constructor Details
This class inherits a constructor from Reactor::Cm::Obj::Request
Instance Method Details
#build(id, attrs, attr_options) ⇒ Object
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 |
# File 'lib/reactor/cm/obj.rb', line 557 def build(id, attrs, ) xml.tag!("content-where") do xml.tag!("objectId", id.to_s) xml.tag!("state", "edited") end xml.tag!("content-set") do attrs.each do |key, value| if ([key] || {})[:cdata] xml.tag!(key.to_s) do xml.cdata!(value) end else xml.value_tag!(key.to_s, value) end end end end |