class Reactor::Cm::Obj::LinkAddRequest
Public Instance Methods
build(obj_id, attr, link_data)
click to toggle source
# File lib/reactor/cm/obj.rb, line 578 def build(obj_id, attr, link_data) title = link_data[:title] target = link_data[:target] xml.tag!('content-where') do xml.tag!('objectId', obj_id.to_s) xml.tag!('state', 'edited') end xml.tag!('content-addLinkTo') do xml.tag!('attribute', attr.to_s) xml.tag!('destinationUrl', link_data[:destination_url].to_s) xml.tag!('title', title.to_s) if title xml.tag!('target', target.to_s) if target end end