Sha256: b4395aab227217f3e264226cff2bbf0325123efe2dec8139582fdeec72f60031

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

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

class Skala::ElasticsearchAdapter::Search::RequestTransformation::
  AddSize < Transformator::Transformation::Step

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skala-1.1.0 lib/skala/elasticsearch_adapter/search/request_transformation/add_size.rb