Sha256: d08361311591619716f29603a89e05a29a84ddf87f7682e2ad0141cb63117b09

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

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

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

  def call
    transformation.inner_search_request.locate("PrimoSearchRequest/StartIndex").first.tap do |_node|
      _node << (source.from + 1).to_s
    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_start_index.rb