class IntacctRuby::Functions::CreateEmployee

Function that creates an employee instance in Intacct

Public Class Methods

new(attrs = {}) click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_employee.rb, line 7
def initialize(attrs = {})
  super("create_employee_#{attrs[:employeeid]}", attrs)
end

Public Instance Methods

to_xml() click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_employee.rb, line 11
def to_xml
  super do |xml|
    xml.create_employee do
      xml.employeeid @attrs[:employeeid]
      xml << employee_params
    end
  end
end