Sha256: 27db7756002f5450964e2bb09cdaf0dc9eb80a3df638d25e8704a318ac59cbc4

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

# coding: utf-8

module ThinReports
  module Report
    
    class Events < Core::Events
      def initialize
        super(:page_create,
              :generate)
      end
      
      class Event < ThinReports::Core::Events::Event
        # @return [ThinReports::Core::Page, nil]
        attr_reader :page
        
        # @return [Array<ThinReports::Core::Page>]
        attr_reader :pages
        
        # @return [ThinReports::Report::Base]
        alias_method :report, :target
        
        def initialize(type, target, page = nil, pages = nil)
          super(type, target)

          @page  = page
          @pages = pages
        end
      end
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinreports-0.7.7 lib/thinreports/report/events.rb
thinreports-0.7.6 lib/thinreports/report/events.rb
thinreports-0.7.5 lib/thinreports/report/events.rb
thinreports-0.7.0 lib/thinreports/report/events.rb
thinreports-0.6.0.pre3 lib/thinreports/report/events.rb