Class: Cyrel::Clause::Return::RawIdentifier

Inherits:
Expression::Base show all
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

Instance Method Summary collapse

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

#identifierObject (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