Sha256: 9e328021f9c91f905fa7844b2909a2a8950c347ef74d90662e987b2831c1802e
Contents?: true
Size: 594 Bytes
Versions: 7
Compression:
Stored size: 594 Bytes
Contents
module AgnosticBackend module Elasticsearch class RemoteIndexField attr_reader :name, :type def initialize(name, type, **args) @name = name @type = to_local type @options = args end def method_missing(method_name) if @options.has_key? method_name @options[method_name] else super end end private def to_local(remote_type) AgnosticBackend::Elasticsearch::IndexField::TYPE_MAPPINGS.find{|ltype, rtype| remote_type == rtype}.try(:first) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems