Class: DataMapper::Query::Operator

Inherits:
Object
  • Object
show all
Includes:
Assertions
Defined in:
lib/gems/dm-core-0.9.9/lib/dm-core/query.rb

Overview

class Direction

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Assertions

#assert_kind_of

Instance Attribute Details

#operatorObject (readonly)

Returns the value of attribute operator.



600
601
602
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/query.rb', line 600

def operator
  @operator
end

#targetObject (readonly)

Returns the value of attribute target.



600
601
602
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/query.rb', line 600

def target
  @target
end

Instance Method Details

#==(other) ⇒ Object



606
607
608
609
610
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/query.rb', line 606

def ==(other)
  return true if super
  return false unless other.kind_of?(self.class)
  @operator == other.operator && @target == other.target
end

#to_symObject



602
603
604
# File 'lib/gems/dm-core-0.9.9/lib/dm-core/query.rb', line 602

def to_sym
  @property_name
end