class IntacctRuby::Functions::UpdateLocation

used to update location instances in Intacct

Public Class Methods

new(attrs = {}) click to toggle source
# 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
# 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