Class: Skala::ElasticsearchAdapter::Search::RequestTransformation::AddSize

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

Instance Method Summary collapse

Instance Method Details

#callObject



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

def call
  source.size.try do |_size|
    target["size"] = _size
  end
end