Sha256: 855a721269ce766bf3f26249315cab84898ec8971160f4537ada8132f98a1825

Contents?: true

Size: 263 Bytes

Versions: 23

Compression:

Stored size: 263 Bytes

Contents

# frozen-string_literal: true

module Decidim
  module Meetings
    class MeetingRegistrationsOverPercentageEvent < Decidim::Events::SimpleEvent
      i18n_attributes :percentage

      def percentage
        extra["percentage"] * 100
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
decidim-meetings-0.9.2 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.9.1 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.9.0 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb