Class: Intacct::Functions::ReversePayment
- Inherits:
-
Object
- Object
- Intacct::Functions::ReversePayment
- Defined in:
- lib/intacct/functions/reverse_payment.rb
Instance Method Summary collapse
-
#initialize(key, &block) ⇒ ReversePayment
constructor
A new instance of ReversePayment.
- #to_xml ⇒ Object
Constructor Details
#initialize(key, &block) ⇒ ReversePayment
Returns a new instance of ReversePayment.
6 7 8 9 |
# File 'lib/intacct/functions/reverse_payment.rb', line 6 def initialize(key, &block) @key = key @block = block end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 |
# File 'lib/intacct/functions/reverse_payment.rb', line 11 def to_xml builder = Builder::XmlMarkup.new builder.reverse_arpayment(key: @key) do @block.call(builder) end end |