Sha256: 021162b282e2b2af62a03315c4b5b97a3a26eef6228a1c0ee8d81b70b00e5484

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Conferences
    class ConferenceRegistrationsOverPercentageEvent < Decidim::Events::SimpleEvent
      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-conferences-0.29.1 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.4 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.29.0 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.3 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.29.0.rc4 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.29.0.rc3 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.29.0.rc2 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.29.0.rc1 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.2 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.1 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.0 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.0.rc5 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb
decidim-conferences-0.28.0.rc4 app/events/decidim/conferences/conference_registrations_over_percentage_event.rb