Class: MemoryDb::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/memorydb/filter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field, operator, value) ⇒ Filter

Returns a new instance of Filter.



6
7
8
9
10
# File 'lib/memorydb/filter.rb', line 6

def initialize(field, operator, value)
  @field = field
  @operator = operator
  @value = value
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



4
5
6
# File 'lib/memorydb/filter.rb', line 4

def field
  @field
end

#operatorObject (readonly)

Returns the value of attribute operator.



4
5
6
# File 'lib/memorydb/filter.rb', line 4

def operator
  @operator
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/memorydb/filter.rb', line 4

def value
  @value
end