Class: Decidim::Initiatives::MilestoneCompletedEvent

Inherits:
Events::SimpleEvent
  • Object
show all
Defined in:
app/events/decidim/initiatives/milestone_completed_event.rb

Instance Method Summary collapse

Instance Method Details

#event_has_roles?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/events/decidim/initiatives/milestone_completed_event.rb', line 16

def event_has_roles?
  true
end

#participatory_spaceObject



12
13
14
# File 'app/events/decidim/initiatives/milestone_completed_event.rb', line 12

def participatory_space
  resource
end

#percentageObject



8
9
10
# File 'app/events/decidim/initiatives/milestone_completed_event.rb', line 8

def percentage
  extra[:percentage]
end