class IntacctRuby::Functions::ProjectBaseFunction

contains shared code for creating and updating projects

Private Instance Methods

project_params() click to toggle source
# File lib/intacct_ruby/functions/project_base_function.rb, line 9
def project_params
  xml = Builder::XmlMarkup.new

  [:projectid, :name, :projectcategory, :customerid].each do |key|
    xml.tag!(key.to_s) { xml << @attrs[key].to_s }
  end

  xml << custom_field_params(@attrs[:customfields])

  xml.target!
end