Module: NetSuite::Actions::Add::Support

Defined in:
lib/netsuite/actions/add.rb

Instance Method Summary collapse

Instance Method Details

#add(credentials = {}) ⇒ Object



79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/netsuite/actions/add.rb', line 79

def add(credentials={})
  response = NetSuite::Actions::Add.call([self], credentials)

  @errors = response.errors

  if response.success?
    @internal_id = response.body[:@internal_id]
    true
  else
    false
  end
end