Class: Reactor::Cm::Obj::SimpleCommandRequest
- 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, cmd_name, comment = nil) ⇒ Object
533 534 535 536 537 538 539 540 541 542 |
# File 'lib/reactor/cm/obj.rb', line 533 def build(obj_id, cmd_name, comment = nil) xml.where_key_tag!("obj", "id", obj_id) if comment xml.tag!("obj-#{cmd_name}") do xml.tag!("comment", comment) end else xml.tag!("obj-#{cmd_name}") end end |