class IntacctRuby::Functions::UpdateCustomer

update customer instance

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/intacct_ruby/functions/update_customer.rb, line 9
def initialize(attrs = {})
  super "update_customer_#{attrs[:customerid]} (#{timestamp})", attrs
end

Public Instance Methods

to_xml() click to toggle source
# File lib/intacct_ruby/functions/update_customer.rb, line 13
def to_xml
  super do |xml|
    xml.update_customer customerid: @attrs[:customerid] do
      xml << customer_params
    end
  end
end