Sha256: c427fb5ea18aa035d5e7c95ce5990055960201739dfb68c8f97468ea333ad57a

Contents?: true

Size: 688 Bytes

Versions: 5

Compression:

Stored size: 688 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::Report::Page, nil]
        attr_reader :page
        
        # @return [Array<Thinreports::Report::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.9.1 lib/thinreports/report/events.rb
thinreports-0.9.0 lib/thinreports/report/events.rb
thinreports-0.8.2 lib/thinreports/report/events.rb
thinreports-0.8.1 lib/thinreports/report/events.rb
thinreports-0.8.0 lib/thinreports/report/events.rb