Class: IntacctRuby::Functions::CreateProject
- Inherits:
-
ProjectBaseFunction
- Object
- BaseFunction
- ProjectBaseFunction
- IntacctRuby::Functions::CreateProject
- Defined in:
- lib/intacct_ruby/functions/create_project.rb
Overview
creates a project instance in Intacct
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ CreateProject
constructor
A new instance of CreateProject.
- #to_xml ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ CreateProject
Returns a new instance of CreateProject.
7 8 9 |
# File 'lib/intacct_ruby/functions/create_project.rb', line 7 def initialize(attrs = {}) super("create_project_#{attrs[:projectid]}", attrs) end |
Instance Method Details
#to_xml ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/intacct_ruby/functions/create_project.rb', line 11 def to_xml super do |xml| xml.create_project do xml << project_params end end end |