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