class RubyReportable::Source

Public Class Methods

new() click to toggle source
# File lib/ruby_reportable/source.rb, line 3
def initialize
  @options = {:filters => [], :as => :element}
end

Public Instance Methods

[](key) click to toggle source
# File lib/ruby_reportable/source.rb, line 7
def [](key)
  @options[key]
end
[]=(key, value) click to toggle source
# File lib/ruby_reportable/source.rb, line 11
def []=(key, value)
  @options[key] = value
end
as(variable_name) click to toggle source
# File lib/ruby_reportable/source.rb, line 15
def as(variable_name)
  self[:as] = variable_name
end
logic(&block) click to toggle source
# File lib/ruby_reportable/source.rb, line 19
def logic(&block)
  self[:logic] = block
end