Class: Celsius::Primo::SoapApi::Searcher

Inherits:
Object
  • Object
show all
Defined in:
lib/celsius/primo/soap_api/searcher.rb

Defined Under Namespace

Classes: SearchBrief

Instance Method Summary collapse

Constructor Details

#initialize(searcher_url) ⇒ Searcher

Returns a new instance of Searcher.

Raises:

  • (ArgumentError)


6
7
8
9
# File 'lib/celsius/primo/soap_api/searcher.rb', line 6

def initialize(searcher_url)
  raise ArgumentError, "searcher_url is missing!" unless searcher_url
  @searcher_url = searcher_url
end

Instance Method Details

#searchBrief(*args) ⇒ Object



11
12
13
# File 'lib/celsius/primo/soap_api/searcher.rb', line 11

def searchBrief(*args)
  SearchBrief.new(@searcher_url).call(*args)
end