Class: Intacct::Functions::CreateArAdjustment

Inherits:
Object
  • Object
show all
Defined in:
lib/intacct/functions/create_ar_adjustment.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ CreateArAdjustment

Returns a new instance of CreateArAdjustment.



6
7
8
# File 'lib/intacct/functions/create_ar_adjustment.rb', line 6

def initialize(&block)
  @block = block
end

Instance Method Details

#to_xmlObject



10
11
12
13
14
15
16
# File 'lib/intacct/functions/create_ar_adjustment.rb', line 10

def to_xml
  builder = Builder::XmlMarkup.new

  builder.create_aradjustment do
    @block.call(builder)
  end
end