class IntacctRuby::Functions::ItemBaseFunction

function that all item functions are built off of, to decreate dupe code

Constants

ALL_PARAMS

Public Instance Methods

item_params() click to toggle source
# File lib/intacct_ruby/functions/item_base_function.rb, line 17
def item_params
  xml = Builder::XmlMarkup.new

  ALL_PARAMS.each do |param_name|
    param_value = @attrs[param_name]
    xml.tag!(param_name) { xml << param_value } if param_value
  end

  xml.target!
end