class Sleek::Queries::Maximum
Internal: Maximum
query.
Finds the maximum value for a given property.
target_property - the String name of target property on event.
Examples
sleek.queries.maximum(:purchases, target_property: "total") # => 199_99
Public Instance Methods
perform(events)
click to toggle source
# File lib/sleek/queries/maximum.rb, line 16 def perform(events) events.max target_property end