Sha256: a8e494cd30f9e72e602d2cef73977dc2cd19bc4db5da3faedf90ee4edf66099c

Contents?: true

Size: 310 Bytes

Versions: 13

Compression:

Stored size: 310 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class MeetingRegistrationsOverPercentageEvent < Decidim::Events::SimpleEvent
      include Decidim::Meetings::MeetingEvent

      i18n_attributes :percentage

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-meetings-0.29.1 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.4 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.29.0 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.3 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.29.0.rc4 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.29.0.rc3 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.29.0.rc2 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.29.0.rc1 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.2 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.1 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.0 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.0.rc5 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb
decidim-meetings-0.28.0.rc4 app/events/decidim/meetings/meeting_registrations_over_percentage_event.rb