class Quickeebooks::Shared::Service::OperationNode
Public Instance Methods
add(&block)
click to toggle source
# File lib/quickeebooks/shared/service/operation_node.rb, line 9 def add(&block) node("Add", &block) end
guid()
click to toggle source
# File lib/quickeebooks/shared/service/operation_node.rb, line 17 def guid SecureRandom.hex(16) end
mod(&block)
click to toggle source
# File lib/quickeebooks/shared/service/operation_node.rb, line 13 def mod(&block) node("Mod", &block) end
Private Instance Methods
node(type, &block)
click to toggle source
# File lib/quickeebooks/shared/service/operation_node.rb, line 23 def node(type, &block) content = %Q{<#{type} xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"} content << %Q{ RequestId="#{guid}" xmlns="http://www.intuit.com/sb/cdm/v2">} block.call(content) content << "</#{type}>" content end