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

Inherits:
Transformator::Transformation::Step
  • Object
show all
Defined in:
lib/skala/primo_adapter/search/request_transformation/set_on_campus.rb

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  transformation.inner_search_request.locate("onCampus").first.tap do |_node|
    _node << (transformation.on_campus.try(:to_s) == "true" ? "true" : "false")
  end
end