class IntacctRuby::Functions::UpdateEmployee
function used to update employee instances
Public Class Methods
new(attrs = {})
click to toggle source
Calls superclass method
IntacctRuby::Functions::BaseFunction::new
# File lib/intacct_ruby/functions/update_employee.rb, line 7 def initialize(attrs = {}) super("update_employee_#{attrs[:employeeid]} (#{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_employee.rb, line 11 def to_xml super do |xml| xml.update_employee employeeid: @attrs[:employeeid] do xml << employee_params end end end