Class: Skala::PrimoAdapter::Search::RequestTransformation

Inherits:
Transformator::Transformation
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/skala/primo_adapter/search/request_transformation.rb

Defined Under Namespace

Classes: AddQueries, AddSortByList, EmbedInnerSearchRequest, SerializeTargetAsXml, SetBulkSize, SetInstitution, SetLanguages, SetLocations, SetOnCampus, SetStartIndex, SetupInnerSearchRequest, SetupTarget, ToggleBoolOperator

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



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

def adapter
  @adapter
end

#inner_search_requestObject

Returns the value of attribute inner_search_request.



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

def inner_search_request
  @inner_search_request
end

#on_campusObject

Returns the value of attribute on_campus.



11
12
13
# File 'lib/skala/primo_adapter/search/request_transformation.rb', line 11

def on_campus
  @on_campus
end

Instance Method Details

#call(source, adapter, options = {}) ⇒ Object



15
16
17
18
19
# File 'lib/skala/primo_adapter/search/request_transformation.rb', line 15

def call(source, adapter, options = {})
  self.adapter = adapter
  self.on_campus = options.try(:[], :on_campus)
  super(source, options)
end