Class: NetSuite::Actions::Search

Inherits:
Object
  • Object
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

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