Sha256: 367ebe4f807f0be15fb73243e1e0c847bdfed5955a990dba6e4b2baaf6850a8f

Contents?: true

Size: 884 Bytes

Versions: 4

Compression:

Stored size: 884 Bytes

Contents

# coding: utf-8

module ThinReports
  module Core::Shape
    
    class List::Configuration
      # @return [ThinReports::Core::Shape::List::Events]
      attr_reader :events
      
      # @return [ThinReports::Core::Shape::List::Store]
      attr_reader :store
            
      # @param [ThinReports::Core::Shape::List::Events, nil] events (nil)
      # @param [ThinReports::Core::Shape::List::Store, nil] store (nil)
      def initialize(events = nil, store = nil)
        @events = events || List::Events.new
        @store  = store
      end
      
      # @param [Hash] stores :name => default value
      def use_stores(stores)
        @store = List::Store.init(stores)
      end
      
      # @return [ThinReports::Core::Shape::List::Configuration]
      # @private
      def copy
        self.class.new(@events.copy, @store && @store.copy)
      end
    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thinreports-0.7.6 lib/thinreports/core/shape/list/configuration.rb
thinreports-0.7.5 lib/thinreports/core/shape/list/configuration.rb
thinreports-0.7.0 lib/thinreports/core/shape/list/configuration.rb
thinreports-0.6.0.pre3 lib/thinreports/core/shape/list/configuration.rb