Class: DataMapper::Query::Operator
- Inherits:
-
Object
- Object
- DataMapper::Query::Operator
- Includes:
- Assertions
- Defined in:
- lib/dm-core/query.rb
Overview
class Direction
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
Methods included from Assertions
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
551 552 553 |
# File 'lib/dm-core/query.rb', line 551 def operator @operator end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
551 552 553 |
# File 'lib/dm-core/query.rb', line 551 def target @target end |
Instance Method Details
#==(other) ⇒ Object
557 558 559 560 561 |
# File 'lib/dm-core/query.rb', line 557 def ==(other) return true if super return false unless other.kind_of?(self.class) @operator == other.operator && @target == other.target end |
#to_sym ⇒ Object
553 554 555 |
# File 'lib/dm-core/query.rb', line 553 def to_sym @property_name end |