Module: NetSuite::Actions::Search::Support::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



251
252
253
254
255
256
257
258
259
# File 'lib/netsuite/actions/search.rb', line 251

def search(options = { }, credentials={})
  response = NetSuite::Actions::Search.call([self, options], credentials)

  if response.success?
    NetSuite::Support::SearchResult.new(response, self, credentials)
  else
    false
  end
end