class Axiom::Aggregate::Minimum
The maximum value in a sequence of numbers
Constants
- DEFAULT
Public Class Methods
call(minimum, value)
click to toggle source
Return the minimum value for a sequence of numbers
@example
minimum = Minimum.call(minimum, value)
@param [Numeric] minimum
@param [Numeric] value
@return [Numeric]
@api public
# File lib/axiom/aggregate/minimum.rb, line 23 def self.call(minimum, value) return minimum if value.nil? value < minimum ? value : minimum end
Public Instance Methods
type()
click to toggle source
Return the type returned from call
@example
type = aggregate.type # => Axiom::Types::Numeric
@return [Class<Types::Numeric>]
@api public
# File lib/axiom/aggregate/minimum.rb, line 36 def type Attribute.infer_type(operand) end