Class: SQL::Composer::Nodes::Select

Inherits:
Core
  • Object
show all
Defined in:
lib/sql/composer/nodes/select.rb

Instance Attribute Summary

Attributes inherited from Core

#id, #options

Instance Method Summary collapse

Methods inherited from Core

#backend, #fetch, #initialize, #quote

Constructor Details

This class inherits a constructor from SQL::Composer::Nodes::Core

Instance Method Details

#identifiersObject



9
10
11
# File 'lib/sql/composer/nodes/select.rb', line 9

def identifiers
  fetch(:identifiers)
end

#to_sObject



13
14
15
# File 'lib/sql/composer/nodes/select.rb', line 13

def to_s
  "SELECT #{identifiers.map(&:to_s).join(', ')}"
end