Class: Lafcadio::Query::Not
- Defined in:
- lib/lafcadio/query/Not.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(unCondition) ⇒ Not
constructor
A new instance of Not.
- #objectMeets(obj) ⇒ Object
- #objectType ⇒ Object
- #toSql ⇒ Object
Methods inherited from Condition
#dbFieldName, #getField, #not, #primaryKeyField?, searchTermType
Constructor Details
#initialize(unCondition) ⇒ Not
Returns a new instance of Not.
6 7 8 |
# File 'lib/lafcadio/query/Not.rb', line 6 def initialize(unCondition) @unCondition = unCondition end |
Instance Method Details
#objectMeets(obj) ⇒ Object
14 15 16 |
# File 'lib/lafcadio/query/Not.rb', line 14 def objectMeets(obj) !@unCondition.objectMeets(obj) end |
#objectType ⇒ Object
18 |
# File 'lib/lafcadio/query/Not.rb', line 18 def objectType; @unCondition.objectType; end |
#toSql ⇒ Object
10 11 12 |
# File 'lib/lafcadio/query/Not.rb', line 10 def toSql "!(#{ @unCondition.toSql })" end |