Class: Flounder::Expression::ConditionBit

Inherits:
Expr
  • Object
show all
Defined in:
lib/flounder/expression.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bitObject

Returns the value of attribute bit.



99
100
101
# File 'lib/flounder/expression.rb', line 99

def bit
  @bit
end

#engineObject

Returns the value of attribute engine.



99
100
101
# File 'lib/flounder/expression.rb', line 99

def engine
  @engine
end

Instance Method Details

#to_sqlObject



101
102
103
# File 'lib/flounder/expression.rb', line 101

def to_sql
  bit.to_sql(engine)
end