Class: Skala::ElasticsearchAdapter::Search::RequestTransformation::AddSize
- Inherits:
-
Transformator::Transformation::Step
- Object
- Transformator::Transformation::Step
- Skala::ElasticsearchAdapter::Search::RequestTransformation::AddSize
- Defined in:
- lib/skala/elasticsearch_adapter/search/request_transformation/add_size.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
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 |