Sha256: 0971628245fef698844d25da4b71a8385cdcf8401143172d096a02581ebb145e

Contents?: true

Size: 356 Bytes

Versions: 14

Compression:

Stored size: 356 Bytes

Contents

module RubyReportable
  class Source
    def initialize
      @options = {:filters => [], :as => :element}
    end

    def [](key)
      @options[key]
    end

    def []=(key, value)
      @options[key] = value
    end

    def as(variable_name)
      self[:as] = variable_name
    end

    def logic(&block)
      self[:logic] = block
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby_reportable-0.5.1 lib/ruby_reportable/source.rb
ruby_reportable-0.5.0 lib/ruby_reportable/source.rb
ruby_reportable-0.4.3 lib/ruby_reportable/source.rb
ruby_reportable-0.4.2 lib/ruby_reportable/source.rb
ruby_reportable-0.4.1 lib/ruby_reportable/source.rb
ruby_reportable-0.4.0 lib/ruby_reportable/source.rb
ruby_reportable-0.3.1 lib/ruby_reportable/source.rb
ruby_reportable-0.3.0 lib/ruby_reportable/source.rb
ruby_reportable-0.2.0 lib/ruby_reportable/source.rb
ruby_reportable-0.1.3.1 lib/ruby_reportable/source.rb
ruby_reportable-0.1.3 lib/ruby_reportable/source.rb
ruby_reportable-0.1.2 lib/ruby_reportable/source.rb
ruby_reportable-0.1.1 lib/ruby_reportable/source.rb
ruby_reportable-0.1.0 lib/ruby_reportable/source.rb