Class: Decidim::ActionDelegator::QuestionStats

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_delegatesObject (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_participantsObject (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