module ElasticsearchQuery::FilterFormatter
Public Class Methods
formatter_for( value )
click to toggle source
# File lib/elasticsearch_query/filter_formatter.rb, line 9 def formatter_for( value ) case value when String !!value.match( /\.\./ ) ? FilterFormatter::Range : FilterFormatter::Match when Hash FilterFormatter::Custom end end