Class: SQB::WhereDSL::PositiveAttribute
Instance Method Summary
collapse
Methods inherited from Attribute
#initialize
Instance Method Details
#<(value) ⇒ Object
Also known as:
less_than
36
37
38
|
# File 'lib/sqb/where_dsl.rb', line 36
def <(value)
@hash[@attribute_name][:less_than] = value
end
|
#<=(value) ⇒ Object
Also known as:
less_than_or_equal_to
41
42
43
|
# File 'lib/sqb/where_dsl.rb', line 41
def <=(value)
@hash[@attribute_name][:less_than_or_equal_to] = value
end
|
#=~(value) ⇒ Object
Also known as:
like
31
32
33
|
# File 'lib/sqb/where_dsl.rb', line 31
def =~(value)
@hash[@attribute_name][:like] = value
end
|
#>(value) ⇒ Object
Also known as:
greater_than
46
47
48
|
# File 'lib/sqb/where_dsl.rb', line 46
def >(value)
@hash[@attribute_name][:greater_than] = value
end
|
#>=(value) ⇒ Object
Also known as:
greater_than_or_equal_to
51
52
53
|
# File 'lib/sqb/where_dsl.rb', line 51
def >=(value)
@hash[@attribute_name][:greater_than_or_equal_to] = value
end
|
#includes(*values) ⇒ Object
Also known as:
in
56
57
58
|
# File 'lib/sqb/where_dsl.rb', line 56
def includes(*values)
@hash[@attribute_name][:in] = values
end
|
#not ⇒ Object
Also known as:
does_not
61
62
63
|
# File 'lib/sqb/where_dsl.rb', line 61
def not
NegativeAttribute.new(@attribute_name, @hash)
end
|
#not=(value) ⇒ Object
66
67
68
|
# File 'lib/sqb/where_dsl.rb', line 66
def not=(value)
@hash[@attribute_name][:not_equal] = value
end
|