Module: ROM::LDAP::Dataset::DSL Private
- Included in:
- ROM::LDAP::Dataset
- Defined in:
- lib/rom/ldap/dataset/dsl.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
AST Query Interface
Instance Method Summary collapse
- #approx(args) ⇒ Dataset private
-
#begins(args) ⇒ Dataset
private
Starts with filter.
- #binary_equal(args) ⇒ Dataset private
- #bitwise(args) ⇒ Dataset private
- #contains(args) ⇒ Dataset (also: #matches) private
-
#ends(args) ⇒ Dataset
private
Ends with filter.
-
#equal(args) ⇒ Dataset
private
Equality filter aliased as ‘where’.
-
#excludes(args) ⇒ Dataset
private
negate #contains.
-
#gt(args) ⇒ Dataset
(also: #above)
private
Greater than filter.
-
#gte(args) ⇒ Dataset
private
Greater than or equal filter.
-
#inverse ⇒ Dataset
private
Invert the whole query.
-
#lt(args) ⇒ Dataset
(also: #below)
private
Less than filter.
-
#lte(args) ⇒ Dataset
private
Less than or equal filter.
-
#missing(attribute) ⇒ Dataset
(also: #hasnt)
private
Absence filter aliased as ‘hasnt’.
-
#outside(args) ⇒ Dataset
private
negate #outside.
-
#present(attribute) ⇒ Dataset
(also: #has)
private
Presence filter aliased as ‘has’.
-
#unequal(args) ⇒ Dataset
private
Antonym of ‘equal’.
- #within(args) ⇒ Dataset (also: #between) private
Instance Method Details
#approx(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
173 174 175 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 173 def approx(args) chain(:op_prx, *args.to_a[0]) end |
#begins(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Starts with filter
116 117 118 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 116 def begins(args) chain(*match_dsl(args, right: WILDCARD)) end |
#binary_equal(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
166 167 168 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 166 def binary_equal(args) chain(:op_bineq, *args.to_a[0]) end |
#bitwise(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
180 181 182 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 180 def bitwise(args) chain(:op_ext, *args.to_a[0]) end |
#contains(args) ⇒ Dataset Also known as: matches
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
132 133 134 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 132 def contains(args) chain(*match_dsl(args, left: WILDCARD, right: WILDCARD)) end |
#ends(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Ends with filter
125 126 127 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 125 def ends(args) chain(*match_dsl(args, left: WILDCARD)) end |
#equal(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Equality filter aliased as ‘where’.
28 29 30 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 28 def equal(args) chain(*array_dsl(args)) end |
#excludes(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
negate #contains
142 143 144 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 142 def excludes(args) chain(:con_not, match_dsl(args, left: WILDCARD, right: WILDCARD)) end |
#gt(args) ⇒ Dataset Also known as: above
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Greater than filter
78 79 80 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 78 def gt(args) chain(:con_not, [:op_lte, *args.to_a[0]]) end |
#gte(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Greater than or equal filter
98 99 100 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 98 def gte(args) chain(:op_gte, *args.to_a[0]) end |
#inverse ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Invert the whole query
14 15 16 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 14 def inverse with(criteria: [:con_not, criteria]) end |
#lt(args) ⇒ Dataset Also known as: below
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Less than filter
88 89 90 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 88 def lt(args) chain(:con_not, [:op_gte, *args.to_a[0]]) end |
#lte(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Less than or equal filter
107 108 109 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 107 def lte(args) chain(:op_lte, *args.to_a[0]) end |
#missing(attribute) ⇒ Dataset Also known as: hasnt
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Absence filter aliased as ‘hasnt’. Inverse of ‘present’.
68 69 70 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 68 def missing(attribute) chain(:con_not, [:op_eql, attribute, :wildcard]) end |
#outside(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
negate #outside
159 160 161 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 159 def outside(args) chain(:con_not, [:con_and, cover_dsl(args)]) end |
#present(attribute) ⇒ Dataset Also known as: has
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Presence filter aliased as ‘has’.
54 55 56 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 54 def present(attribute) chain(:op_eql, attribute, :wildcard) end |
#unequal(args) ⇒ Dataset
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Antonym of ‘equal’
41 42 43 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 41 def unequal(args) chain(:con_not, array_dsl(args)) end |
#within(args) ⇒ Dataset Also known as: between
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
149 150 151 |
# File 'lib/rom/ldap/dataset/dsl.rb', line 149 def within(args) chain(:con_and, cover_dsl(args)) end |