class Reactor::Cm::Obj::ContentSetRequest
Public Instance Methods
build(id, attrs, attr_options)
click to toggle source
# File lib/reactor/cm/obj.rb, line 474 def build(id, attrs, attr_options) 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 (attr_options[key] || {})[:cdata] xml.tag!(key.to_s) do xml.cdata!(value) end else xml.value_tag!(key.to_s, value) end end end end