class ElasticsearchQuery::Filter
Public Class Methods
new( name, value )
click to toggle source
# File lib/elasticsearch_query/filter.rb, line 3 def initialize( name, value ) @name = name @value = value end
Public Instance Methods
to_hash()
click to toggle source
# File lib/elasticsearch_query/filter.rb, line 8 def to_hash formatter_class.new( @name, @value ).to_hash end
Private Instance Methods
formatter_class()
click to toggle source
# File lib/elasticsearch_query/filter.rb, line 14 def formatter_class @formatter_class ||= FilterFormatter.formatter_for( @value ) end