Module: NetSuite::Actions::Update::Support

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

Instance Method Summary collapse

Instance Method Details

#update(options = {}, credentials = {}) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
# File 'lib/netsuite/actions/update.rb', line 73

def update(options = {}, credentials={})
  options[:internal_id] = internal_id if respond_to?(:internal_id) && internal_id

  if !options.include?(:external_id) && (respond_to?(:external_id) && external_id)
    options[:external_id] = external_id
  end

  response = NetSuite::Actions::Update.call([self.class, options], credentials)
  @errors = response.errors
  response.success?
end