Class: IntacctRuby::Functions::CreateLocation
- Inherits:
-
LocationBaseFunction
- Object
- BaseFunction
- LocationBaseFunction
- IntacctRuby::Functions::CreateLocation
- Defined in:
- lib/intacct_ruby/functions/create_location.rb
Overview
Function that creates a location instance in Intacct
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CreateLocation
constructor
A new instance of CreateLocation.
- #to_xml ⇒ Object
Methods included from DateHelper
#date_params, #start_date_params
Constructor Details
#initialize(attrs = {}) ⇒ CreateLocation
Returns a new instance of CreateLocation.
7 8 9 |
# File 'lib/intacct_ruby/functions/create_location.rb', line 7 def initialize(attrs = {}) super("create_location_#{attrs[:locationid]}", attrs) end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 17 18 |
# 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 |