Class: IntacctRuby::Functions::UpdateProject

Inherits:
ProjectBaseFunction show all
Defined in:
lib/intacct_ruby/functions/update_project.rb

Overview

creates a project instance in Intacct

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ UpdateProject

Returns a new instance of UpdateProject.



7
8
9
# File 'lib/intacct_ruby/functions/update_project.rb', line 7

def initialize(attrs = {})
  super("update_project_#{attrs[:projectid]} (#{timestamp})", attrs)
end

Instance Method Details

#to_xmlObject



11
12
13
14
15
16
17
# File 'lib/intacct_ruby/functions/update_project.rb', line 11

def to_xml
  super do |xml|
    xml.update_project key: @attrs[:projectid] do
      xml << project_params
    end
  end
end