Class: Sequel::SQL::AliasedExpression
- Inherits:
-
Expression
- Object
- Expression
- Sequel::SQL::AliasedExpression
- Defined in:
- lib/sequel/sql.rb
Overview
Represents an aliasing of an expression to a given alias.
Instance Attribute Summary collapse
-
#aliaz ⇒ Object
readonly
The alias to use for the expression, not
alias
since that is a keyword in ruby. -
#expression ⇒ Object
readonly
The expression to alias.
Instance Method Summary collapse
-
#initialize(expression, aliaz) ⇒ AliasedExpression
constructor
Create an object with the given expression and alias.
Methods inherited from Expression
#==, attr_reader, comparison_attrs, #eql?, #hash, #inspect, #lit, #sql_literal
Constructor Details
#initialize(expression, aliaz) ⇒ AliasedExpression
Create an object with the given expression and alias.
844 845 846 |
# File 'lib/sequel/sql.rb', line 844 def initialize(expression, aliaz) @expression, @aliaz = expression, aliaz end |
Instance Attribute Details
#aliaz ⇒ Object (readonly)
The alias to use for the expression, not alias
since that is a keyword in ruby.
841 842 843 |
# File 'lib/sequel/sql.rb', line 841 def aliaz @aliaz end |
#expression ⇒ Object (readonly)
The expression to alias
837 838 839 |
# File 'lib/sequel/sql.rb', line 837 def expression @expression end |