Class: IntacctRuby::Functions::UpdateCustomer
- Inherits:
-
CustomerBaseFunction
- Object
- BaseFunction
- CustomerBaseFunction
- IntacctRuby::Functions::UpdateCustomer
- Includes:
- ContactsHelper
- Defined in:
- lib/intacct_ruby/functions/update_customer.rb
Overview
update customer instance
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ UpdateCustomer
constructor
A new instance of UpdateCustomer.
- #to_xml ⇒ Object
Methods included from ContactsHelper
#contact_params, #contactname, #full_name
Constructor Details
#initialize(attrs = {}) ⇒ UpdateCustomer
Returns a new instance of UpdateCustomer.
9 10 11 |
# File 'lib/intacct_ruby/functions/update_customer.rb', line 9 def initialize(attrs = {}) super "update_customer_#{attrs[:customerid]} (#{})", attrs end |
Instance Method Details
#to_xml ⇒ Object
13 14 15 16 17 18 19 |
# 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 |