Class: UState::Query::NotEquals

Inherits:
Object
  • Object
show all
Defined in:
lib/ustate/query/not_equals.rb

Instance Method Summary collapse

Constructor Details

#initialize(field, value) ⇒ NotEquals

Returns a new instance of NotEquals.



3
4
5
6
# File 'lib/ustate/query/not_equals.rb', line 3

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

Instance Method Details

#===(state) ⇒ Object



8
9
10
# File 'lib/ustate/query/not_equals.rb', line 8

def ===(state)
  state.send(@field) != @value
end