Sha256: 65295d07723db79a187badbc7e2f26b263d1600e0291cbde45e76ada3d225dce

Contents?: true

Size: 357 Bytes

Versions: 1

Compression:

Stored size: 357 Bytes

Contents

require "transformator/transformation/step"
require_relative "../request_transformation"

class Skala::PrimoAdapter::Search::RequestTransformation::
  SetInstitution < Transformator::Transformation::Step

  def call
    transformation.inner_search_request.locate("institution").first.tap do |node|
      node << transformation.institution
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/primo_adapter/search/request_transformation/set_institution.rb