Sha256: a84aa14dd2bad7831f34627b2dea7f04e094664c6223d59c98bc4d2041f02e45

Contents?: true

Size: 428 Bytes

Versions: 11

Compression:

Stored size: 428 Bytes

Contents

module Elasticsearch
  module Model

    # Subclass of `Hashie::Mash` to wrap Hash-like structures
    # (responses from Elasticsearch, search definitions, etc)
    #
    # The primary goal of the subclass is to disable the
    # warning being printed by Hashie for re-defined
    # methods, such as `sort`.
    #
    class HashWrapper < ::Hashie::Mash
      disable_warnings if respond_to?(:disable_warnings)
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
elasticsearch-model-queryable-0.1.9 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-6.1.2 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-queryable-0.1.5 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-6.1.1 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-6.1.0 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-6.0.0 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-6.0.0.pre lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-5.1.0 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-5.0.2 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-5.0.1 lib/elasticsearch/model/hash_wrapper.rb
elasticsearch-model-5.0.0 lib/elasticsearch/model/hash_wrapper.rb