Class: Decidim::ActionDelegator::SumOfWeights

Inherits:
Query
  • Object
show all
Defined in:
app/queries/decidim/action_delegator/sum_of_weights.rb

Instance Method Summary collapse

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

#queryObject



10
11
12
# File 'app/queries/decidim/action_delegator/sum_of_weights.rb', line 10

def query
  SumOfMembershipWeight.new(published_questions_responses).query
end