Class: Decidim::ActionDelegator::QuestionStats
- Inherits:
-
Object
- Object
- Decidim::ActionDelegator::QuestionStats
- Defined in:
- app/queries/decidim/action_delegator/scrutiny.rb
Instance Attribute Summary collapse
-
#total_delegates ⇒ Object
readonly
Returns the value of attribute total_delegates.
-
#total_participants ⇒ Object
readonly
Returns the value of attribute total_participants.
Instance Method Summary collapse
-
#initialize(total_delegates, total_participants) ⇒ QuestionStats
constructor
A new instance of QuestionStats.
Constructor Details
#initialize(total_delegates, total_participants) ⇒ QuestionStats
Returns a new instance of QuestionStats.
8 9 10 11 |
# File 'app/queries/decidim/action_delegator/scrutiny.rb', line 8 def initialize(total_delegates, total_participants) @total_delegates = total_delegates @total_participants = total_participants end |
Instance Attribute Details
#total_delegates ⇒ Object (readonly)
Returns the value of attribute total_delegates.
6 7 8 |
# File 'app/queries/decidim/action_delegator/scrutiny.rb', line 6 def total_delegates @total_delegates end |
#total_participants ⇒ Object (readonly)
Returns the value of attribute total_participants.
6 7 8 |
# File 'app/queries/decidim/action_delegator/scrutiny.rb', line 6 def total_participants @total_participants end |