Class: Skala::PrimoAdapter::Search::RequestTransformation
- Inherits:
-
Transformator::Transformation
- Object
- Transformator::Transformation
- Skala::PrimoAdapter::Search::RequestTransformation
- 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
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#inner_search_request ⇒ Object
Returns the value of attribute inner_search_request.
-
#on_campus ⇒ Object
Returns the value of attribute on_campus.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
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_request ⇒ Object
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_campus ⇒ Object
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, = {}) self.adapter = adapter self.on_campus = .try(:[], :on_campus) super(source, ) end |