Sha256: 093e713315163e48d129169633c9783880b9266cb16901cb50f2643cf905955d
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module Decidim module ActionDelegator class SumOfWeights < Decidim::Query def initialize(consultation) @consultation = consultation end def query SumOfMembershipWeight.new(published_questions_responses).query end private attr_reader :consultation def published_questions_responses VotedWithPonderations.new( Responses.new(consultation).query ).query end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
decidim-action_delegator-0.8.1 | app/queries/decidim/action_delegator/sum_of_weights.rb |