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