Sha256: 93e14b8021777cc7ed9de1a56ff434eeec219af1b69b9b7186fae3863fbc1849

Contents?: true

Size: 378 Bytes

Versions: 5

Compression:

Stored size: 378 Bytes

Contents

require "celsius/transformation/step"
require "ox"

class Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation::
  SetBulkSize < Celsius::Transformation::Step

  def call
    transformation.inner_search_request.locate("PrimoSearchRequest/BulkSize").first.tap do |node|
      node << Celsius::Hash.deep_find_key(source, :size).first.to_s
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
celsius-primo-0.1.4 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_bulk_size.rb
celsius-primo-0.1.3 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_bulk_size.rb
celsius-primo-0.1.2 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_bulk_size.rb
celsius-primo-0.1.1 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_bulk_size.rb
celsius-primo-0.1.0 lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_bulk_size.rb