Class: Cyrel::Clause::Return::RawIdentifier
- Inherits:
-
Expression::Base
- Object
- Expression::Base
- Cyrel::Clause::Return::RawIdentifier
- Defined in:
- lib/cyrel/clause/return.rb
Overview
Simple internal class to represent a raw identifier (variable/alias) that should not be parameterized or quoted.
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(identifier) ⇒ RawIdentifier
constructor
A new instance of RawIdentifier.
- #render(_query) ⇒ Object
Methods inherited from Expression::Base
#!=, #%, #&, #*, #+, #-, #/, #<, #<=, #==, #=~, #>, #>=, #^, #|
Constructor Details
#initialize(identifier) ⇒ RawIdentifier
Returns a new instance of RawIdentifier.
82 83 84 |
# File 'lib/cyrel/clause/return.rb', line 82 def initialize(identifier) @identifier = identifier end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
80 81 82 |
# File 'lib/cyrel/clause/return.rb', line 80 def identifier @identifier end |
Instance Method Details
#render(_query) ⇒ Object
86 |
# File 'lib/cyrel/clause/return.rb', line 86 def render(_query) = @identifier |