class ROM::LDAP::RestrictionDSL

@api private

Public Instance Methods

`(value) click to toggle source

Parse a raw query to AST.

@param [String] value

@return [AST]

@example

animals.where { `(cn=dodo)` }.count

@api public

# File lib/rom/ldap/restriction_dsl.rb, line 26
def `(value)
  Parsers::FilterSyntax.new(value, EMPTY_ARRAY).call
end
call(&block) click to toggle source

@api private

# File lib/rom/ldap/restriction_dsl.rb, line 12
def call(&block)
  instance_exec(select_relations(block.parameters), &block)
end

Private Instance Methods

method_missing(meth, *args, &block) click to toggle source

@return [Attribute, Type]

@api private

# File lib/rom/ldap/restriction_dsl.rb, line 35
def method_missing(meth, *args, &block)
  if schema.key?(meth)
    schema[meth]
  else
    type(meth)
  end
end