Class: NetSuite::Actions::Search

Inherits:
AbstractAction show all
Includes:
Support::Requests
Defined in:
lib/netsuite/actions/search.rb

Defined Under Namespace

Modules: Support

Instance Method Summary collapse

Methods included from Support::Requests

#call, included

Methods inherited from AbstractAction

#request

Constructor Details

#initialize(klass, options = { }) ⇒ Search

Returns a new instance of Search.



7
8
9
10
# File 'lib/netsuite/actions/search.rb', line 7

def initialize(klass, options = { })
  @klass = klass
  @options = options
end

Instance Method Details

#class_nameObject



12
13
14
15
16
17
18
# File 'lib/netsuite/actions/search.rb', line 12

def class_name
  @class_name ||= if @klass.respond_to? :search_class_name
    @klass.search_class_name
  else
    @klass.to_s.split("::").last
  end
end