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.



4
5
6
# File 'lib/intacct/functions/create_ar_adjustment.rb', line 4

def initialize(&block)
  @block = block
end

Instance Method Details

#to_xmlObject



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

def to_xml
  builder = Builder::XmlMarkup.new

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