Class: SQB::WhereDSL::NegativeAttribute

Inherits:
Attribute
  • Object
show all
Defined in:
lib/sqb/where_dsl.rb

Instance Method Summary collapse

Methods inherited from Attribute

#initialize

Constructor Details

This class inherits a constructor from SQB::WhereDSL::Attribute

Instance Method Details

#=~(value) ⇒ Object Also known as: like



73
74
75
# File 'lib/sqb/where_dsl.rb', line 73

def =~(value)
  @hash[@attribute_name][:not_like] = value
end

#includes(*values) ⇒ Object Also known as: in



78
79
80
# File 'lib/sqb/where_dsl.rb', line 78

def includes(*values)
  @hash[@attribute_name][:not_in] = values
end