Class: DataMapper::Query::Operator
- Object
- DataMapper::Query::Operator
Attributes
Instance Attributes
| operator | [RW] | public |
Returns the value of attribute operator. |
|---|---|---|---|
| target | [RW] | public |
Returns the value of attribute target. |
Constructor Summary
private
initialize(target, operator)
[View source]
41 42 43 44 45 46 47 48 49 50 51 52
# File 'dm-core/lib/dm-core/query.rb', line 41 def initialize(target, operator) unless Symbol === operator raise ArgumentError, "+operator+ is not a Symbol, but was #{type.class}", caller end @target = target @operator = operator end
Public Visibility
Public Instance Method Details
to_sym
public
to_sym
[View source]
35 36 37 38 39 40
# File 'dm-core/lib/dm-core/query.rb', line 35 def to_sym @property_name end