module IntacctRuby::DateHelper
methods to help generate date XML for calls
Public Instance Methods
date_params(block_name, attrs = {})
click to toggle source
# File lib/intacct_ruby/helpers/date_helper.rb, line 6 def date_params(block_name, attrs = {}) xml = Builder::XmlMarkup.new xml.tag!(block_name) do xml.year attrs[:year] xml.month attrs[:month] xml.day attrs[:day] end end
start_date_params()
click to toggle source
Note: @attrs MUST be defined in the invoking context for this bad boy to work
# File lib/intacct_ruby/helpers/date_helper.rb, line 18 def start_date_params date_params :startdate, @attrs[:startdate] end