class IntacctRuby::Functions::UpdateLocation
used to update location instances in Intacct
Public Class Methods
new(attrs = {})
click to toggle source
Calls superclass method
IntacctRuby::Functions::BaseFunction::new
# File lib/intacct_ruby/functions/update_location.rb, line 7 def initialize(attrs = {}) super("update_location_#{attrs[:locationid]} (#{timestamp})", attrs) end
Public Instance Methods
to_xml()
click to toggle source
Calls superclass method
IntacctRuby::Functions::BaseFunction#to_xml
# File lib/intacct_ruby/functions/update_location.rb, line 11 def to_xml super do |xml| xml.update_location locationid: @attrs[:locationid] do xml << location_params end end end