Class: Arrow::Slicer::LessEqualCondition

Inherits:
Condition
  • Object
show all
Defined in:
lib/arrow/slicer.rb

Instance Method Summary collapse

Methods inherited from Condition

#&, #^, #|

Constructor Details

#initialize(column, value) ⇒ LessEqualCondition

Returns a new instance of LessEqualCondition.



270
271
272
273
# File 'lib/arrow/slicer.rb', line 270

def initialize(column, value)
  @column = column
  @value = value
end

Instance Method Details

#!@Object



275
276
277
# File 'lib/arrow/slicer.rb', line 275

def !@
  GreaterCondition.new(@column, @value)
end

#evaluateObject



279
280
281
# File 'lib/arrow/slicer.rb', line 279

def evaluate
  Function.find("less_equal").execute([@column.data, @value]).value
end