Sha256: d661259b35833cd09ba1ac6f04e693665a7f6ad3a66f28a6a229d5fe090633c5
Contents?: true
Size: 480 Bytes
Versions: 8
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true module Decidim module ActionDelegator class QuestionWithTotals < SimpleDelegator def initialize(question, questions_by_id) super(question) @questions_by_id = questions_by_id end def total_delegates questions_by_id[id].total_delegates end def total_participants questions_by_id[id].total_participants end private attr_reader :questions_by_id end end end
Version data entries
8 entries across 8 versions & 1 rubygems