Class: LogStash::Filters::MathFunctions::FloatDivide

Inherits:
Object
  • Object
show all
Includes:
DivByZeroValidityCheck, Util::Loggable
Defined in:
lib/logstash/filters/math_functions.rb

Instance Method Summary collapse

Methods included from DivByZeroValidityCheck

#invalid?

Instance Method Details

#call(op1, op2) ⇒ Object



124
125
126
# File 'lib/logstash/filters/math_functions.rb', line 124

def call(op1, op2)
  op1.fdiv(op2)
end

#nameObject



120
121
122
# File 'lib/logstash/filters/math_functions.rb', line 120

def name
  "float_divide"
end