class IntacctRuby::Functions::CreateLocation

Function that creates a location instance in Intacct

Public Class Methods

new(attrs = {}) click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_location.rb, line 7
def initialize(attrs = {})
  super("create_location_#{attrs[:locationid]}", attrs)
end

Public Instance Methods

to_xml() click to toggle source
Calls superclass method
# File lib/intacct_ruby/functions/create_location.rb, line 11
def to_xml
  super do |xml|
    xml.create_location do
      xml.locationid @attrs[:locationid]
      xml << location_params
    end
  end
end