Class: IntacctRuby::Functions::UpdateProject
- Inherits:
-
ProjectBaseFunction
- Object
- BaseFunction
- ProjectBaseFunction
- IntacctRuby::Functions::UpdateProject
- Defined in:
- lib/intacct_ruby/functions/update_project.rb
Overview
creates a project instance in Intacct
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ UpdateProject
constructor
A new instance of UpdateProject.
- #to_xml ⇒ Object
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]} (#{})", attrs) end |
Instance Method Details
#to_xml ⇒ Object
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 |