Class: IntacctRuby::Functions::ItemBaseFunction
- Inherits:
-
BaseFunction
- Object
- BaseFunction
- IntacctRuby::Functions::ItemBaseFunction
- Defined in:
- lib/intacct_ruby/functions/item_base_function.rb
Overview
function that all item functions are built off of, to decreate dupe code
Direct Known Subclasses
Constant Summary collapse
- ALL_PARAMS =
[ :name, :itemtype, :extended_description, :productlineid, :standard_cost, :glgroup, :uomgrp ].freeze
Instance Method Summary collapse
Methods inherited from BaseFunction
Constructor Details
This class inherits a constructor from IntacctRuby::Functions::BaseFunction
Instance Method Details
#item_params ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# 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 |