Class: Skala::PrimoAdapter::Search

Inherits:
Adapter::Search show all
Defined in:
lib/skala/primo_adapter/search.rb

Defined Under Namespace

Classes: RequestTransformation, ResultTransformation

Instance Attribute Summary

Attributes inherited from Adapter::Operation

#adapter

Instance Method Summary collapse

Methods inherited from Adapter::Operation

#initialize

Constructor Details

This class inherits a constructor from Skala::Adapter::Operation

Instance Method Details

#call(search_request, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/skala/primo_adapter/search.rb', line 8

def call(search_request, options = {})
  primo_soap_request = RequestTransformation.new.call(search_request, adapter, options)
  primo_result = adapter.soap_api.searchBrief(primo_soap_request)
  ResultTransformation.new.call(primo_result, search_request: search_request)
end