Class: IntacctRuby::Functions::UpdateEmployee
- Inherits:
-
EmployeeBaseFunction
- Object
- BaseFunction
- EmployeeBaseFunction
- IntacctRuby::Functions::UpdateEmployee
- Defined in:
- lib/intacct_ruby/functions/update_employee.rb
Overview
function used to update employee instances
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ UpdateEmployee
constructor
A new instance of UpdateEmployee.
- #to_xml ⇒ Object
Methods included from DateHelper
#date_params, #start_date_params
Methods included from ContactsHelper
#contact_params, #contactname, #full_name
Constructor Details
#initialize(attrs = {}) ⇒ UpdateEmployee
Returns a new instance of UpdateEmployee.
7 8 9 |
# File 'lib/intacct_ruby/functions/update_employee.rb', line 7 def initialize(attrs = {}) super("update_employee_#{attrs[:employeeid]} (#{})", attrs) end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/intacct_ruby/functions/update_employee.rb', line 11 def to_xml super do |xml| xml.update_employee employeeid: @attrs[:employeeid] do xml << employee_params end end end |