Sha256: 8e7929c98b6c57bafddd87dcb9985d00ed3acfb0990dd1c3337ab0e31227808b
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
module RecordFilter module DSL class Restriction attr_reader :column, :negated, :operator, :value def initialize(column, negated) @column, @negated, @operator = column, negated, nil end [:equal_to, :is_null, :less_than, :greater_than, :in, :between].each do |operator| define_method(operator) do |*args| @value = args[0] @operator = operator self end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
aub-record_filter-0.1.0 | lib/record_filter/dsl/restriction.rb |
outoftime-record_filter-0.1.0 | lib/record_filter/dsl/restriction.rb |