class IntacctRuby::Functions::UpdateCustomer
update customer instance
Public Class Methods
new(attrs = {})
click to toggle source
Calls superclass method
IntacctRuby::Functions::BaseFunction::new
# 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
Calls superclass method
IntacctRuby::Functions::BaseFunction#to_xml
# 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