Class: Decidim::ActionDelegator::SumOfWeights
- Inherits:
-
Query
- Object
- Query
- Decidim::ActionDelegator::SumOfWeights
- Defined in:
- app/queries/decidim/action_delegator/sum_of_weights.rb
Instance Method Summary collapse
-
#initialize(consultation) ⇒ SumOfWeights
constructor
A new instance of SumOfWeights.
- #query ⇒ Object
Constructor Details
#initialize(consultation) ⇒ SumOfWeights
Returns a new instance of SumOfWeights.
6 7 8 |
# File 'app/queries/decidim/action_delegator/sum_of_weights.rb', line 6 def initialize(consultation) @consultation = consultation end |
Instance Method Details
#query ⇒ Object
10 11 12 |
# File 'app/queries/decidim/action_delegator/sum_of_weights.rb', line 10 def query SumOfMembershipWeight.new(published_questions_responses).query end |