Class: AssociateJsonb::ArelNodes::SqlCastedBinary
- Inherits:
-
Arel::Nodes::Binary
- Object
- Arel::Nodes::Binary
- AssociateJsonb::ArelNodes::SqlCastedBinary
- Defined in:
- lib/associate_jsonb/arel_nodes/sql_casted_binary.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#original_left ⇒ Object
readonly
Returns the value of attribute original_left.
Instance Method Summary collapse
-
#initialize(left, cast_as, right) ⇒ SqlCastedBinary
constructor
A new instance of SqlCastedBinary.
Constructor Details
#initialize(left, cast_as, right) ⇒ SqlCastedBinary
Returns a new instance of SqlCastedBinary.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/associate_jsonb/arel_nodes/sql_casted_binary.rb', line 8 def initialize(left, cast_as, right) @original_left = left super( ::Arel::Nodes::NamedFunction.new( "CAST", [ left.as(cast_as) ] ), right ) end |
Instance Attribute Details
#original_left ⇒ Object (readonly)
Returns the value of attribute original_left.
7 8 9 |
# File 'lib/associate_jsonb/arel_nodes/sql_casted_binary.rb', line 7 def original_left @original_left end |