Module: NetSuite::Actions::Delete::Support

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

Instance Method Summary collapse

Instance Method Details

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



69
70
71
72
73
74
75
76
# File 'lib/netsuite/actions/delete.rb', line 69

def delete(options = {}, credentials={})
  response =  if options.empty?
                NetSuite::Actions::Delete.call([self], credentials)
              else
                NetSuite::Actions::Delete.call([self, options], credentials)
              end
  response.success?
end