Class: Decidim::StatsFollowersCount
- Defined in:
- decidim-core/app/queries/decidim/stats_followers_count.rb
Direct Known Subclasses
Assemblies::AssembliesStatsFollowersCount, Conferences::ConferencesStatsFollowersCount, Initiatives::InitiativesStatsFollowersCount, ParticipatoryProcesses::ParticipatoryProcessesStatsFollowersCount
Instance Method Summary collapse
-
#initialize(participatory_space) ⇒ StatsFollowersCount
constructor
A new instance of StatsFollowersCount.
- #query ⇒ Object
Methods inherited from Query
#cached_query, #each, #eager?, #exists?, merge, #none?, #relation?, #|
Constructor Details
#initialize(participatory_space) ⇒ StatsFollowersCount
Returns a new instance of StatsFollowersCount.
5 6 7 |
# File 'decidim-core/app/queries/decidim/stats_followers_count.rb', line 5 def initialize(participatory_space) @participatory_space = participatory_space end |
Instance Method Details
#query ⇒ Object
9 10 11 |
# File 'decidim-core/app/queries/decidim/stats_followers_count.rb', line 9 def query space_query + components_query end |