Class: IntacctRuby::Functions::CreateProject

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

Overview

creates a project instance in Intacct

Instance Method Summary collapse

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_xmlObject



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