Class DataMapper::Query::Conditions::AndOperation
In: lib/dm-core/query/conditions/operation.rb
Parent: AbstractOperation

Methods

matches?   minimize  

Included Modules

FlattenOperation

Public Instance methods

Match the record

@example with a Hash

  operation.matches?({ :id => 1 })  # => true

@example with a Resource

  operation.matches?(Blog::Article.new(:id => 1))  # => true

@param [Resource, Hash] record

  the resource to match

@return [true]

  true if the record matches, false if not

@api semipublic

Minimize the operation

@return [self]

  the minimized AndOperation

@return [AbstractOperation, AbstractComparison, Array]

  the minimized operation

@api semipublic

[Validate]