tracks/app/models/stats/contexts.rb
2019-12-18 09:49:57 -06:00

18 lines
359 B
Ruby

# typed: true
module Stats
class Contexts
attr_reader :user
def initialize(user)
@user = user
end
def actions
@actions ||= Stats::TopContextsQuery.new(user, :limit => 5).result
end
def running_actions
@running_actions ||= Stats::TopContextsQuery.new(user, :limit => 5, :running => true).result
end
end
end