Module: Arelastic::Arities::Binary::Methods
- Defined in:
- lib/arelastic/arities/binary.rb
Instance Method Summary collapse
Instance Method Details
#as_elastic ⇒ Object
22 23 24 25 26 |
# File 'lib/arelastic/arities/binary.rb', line 22 def as_elastic params = {field => convert_to_elastic(value)}.update() { self.class.predicate => params } end |
#initialize(field, value, options = {}) ⇒ Object
16 17 18 19 20 |
# File 'lib/arelastic/arities/binary.rb', line 16 def initialize field, value, = {} @field = field @value = value @options = end |