class SQLConstructor::BasicUnion
Internal class which represents a basic UNION statement.
Public Class Methods
new( _caller, type )
click to toggle source
Class contructor. Takes a caller object as the first argument and UNION type as the second argument. Inits @obj to new SQLConstructor
instance
Calls superclass method
SQLConstructor::GenericQuery::new
# File lib/sqlconstructor.rb, line 491 def initialize ( _caller, type ) @type = type super _caller @obj = SQLConstructor.new( :dialect => @dialect, :tidy => @tidy ) end
Public Instance Methods
_get( *args )
click to toggle source
Override GenericQuery
method and send call to @obj
# File lib/sqlconstructor.rb, line 507 def _get ( *args ) @obj._get *args end
_remove( *args )
click to toggle source
Override GenericQuery
method and send call to @obj
# File lib/sqlconstructor.rb, line 514 def _remove ( *args ) @obj._remove *args end
method_missing( method, *args )
click to toggle source
Send call to @obj
# File lib/sqlconstructor.rb, line 521 def method_missing ( method, *args ) @obj.send method, *args end
to_s()
click to toggle source
Export to string
# File lib/sqlconstructor.rb, line 500 def to_s @type + @caller.exporter.separator + @obj.to_s end