Class: Celsius::Primo::SoapApi::Searcher::SearchBrief::SearchRequestTransformation::SetStartIndex

Inherits:
Transformation::Step
  • Object
show all
Defined in:
lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_start_index.rb

Instance Method Summary collapse

Instance Method Details

#callObject



7
8
9
10
11
# File 'lib/celsius/primo/soap_api/searcher/search_brief/search_request_transformation/set_start_index.rb', line 7

def call
  transformation.inner_search_request.locate("PrimoSearchRequest/StartIndex").first.tap do |node|
    node << (Celsius::Hash.deep_find_key(source, :from).first.to_i + 1).to_s
  end
end