Class: Flounder::Expression::ConditionBit
- Defined in:
- lib/flounder/expression.rb
Instance Attribute Summary collapse
-
#bit ⇒ Object
Returns the value of attribute bit.
-
#engine ⇒ Object
Returns the value of attribute engine.
Instance Method Summary collapse
-
#initialize(domain, engine, bit) ⇒ ConditionBit
constructor
A new instance of ConditionBit.
- #to_sql ⇒ Object
Methods inherited from Expr
#&, #as, #cast, #db_quote, #eval, #to_immediate, #|
Constructor Details
#initialize(domain, engine, bit) ⇒ ConditionBit
Returns a new instance of ConditionBit.
93 94 95 96 97 |
# File 'lib/flounder/expression.rb', line 93 def initialize domain, engine, bit super(domain) @engine = engine @bit = bit end |
Instance Attribute Details
#bit ⇒ Object
Returns the value of attribute bit.
99 100 101 |
# File 'lib/flounder/expression.rb', line 99 def bit @bit end |
#engine ⇒ Object
Returns the value of attribute engine.
99 100 101 |
# File 'lib/flounder/expression.rb', line 99 def engine @engine end |
Instance Method Details
#to_sql ⇒ Object
101 102 103 |
# File 'lib/flounder/expression.rb', line 101 def to_sql bit.to_sql(engine) end |