Class: Reactor::Cm::Obj::LinkAddRequest
- 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(obj_id, attr, link_data) ⇒ Object
584 585 586 587 588 589 590 591 592 593 594 595 596 597 |
# File 'lib/reactor/cm/obj.rb', line 584 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 |