class Elasticband::Filter::Exists

Attributes

field[RW]

Public Class Methods

new(field) click to toggle source
# File lib/elasticband/filter/exists.rb, line 6
def initialize(field)
  self.field = field.to_sym
end

Public Instance Methods

to_h() click to toggle source
# File lib/elasticband/filter/exists.rb, line 10
def to_h
  { exists: { field: field } }
end