Class: SQLConstructor::BasicSelect_example
- Inherits:
-
BasicSelect
- Object
- SQLObject
- GenericQuery
- BasicSelect
- SQLConstructor::BasicSelect_example
- Defined in:
- lib/dialects/example-constructor.rb
Constant Summary
Constants inherited from BasicSelect
SQLConstructor::BasicSelect::METHODS
Instance Attribute Summary
Attributes inherited from BasicSelect
#attr_distinction, #attr_expression, #attr_first, #attr_from, #attr_group_by, #attr_group_by_order, #attr_having, #attr_index_hints, #attr_joins, #attr_order_by, #attr_order_by_order, #attr_skip, #attr_unions, #attr_where
Attributes inherited from GenericQuery
#attr_index_hints, #caller, #child_caller, #dialect, #exporter, #string, #tidy, #type
Attributes inherited from SQLObject
#alias, #inline, #name, #separator
Instance Method Summary collapse
-
#initialize(_caller, *list) ⇒ BasicSelect_example
constructor
Class constructor.
-
#method_missing(method, *args) ⇒ Object
You may do mostly anything here, but don’t forget to call method_missing of the parent ( ‘return super’ ).
Methods inherited from BasicSelect
Methods inherited from GenericQuery
#_get, #_remove, #to_s, #to_str
Methods inherited from SQLObject
#_name, #_string, #_string=, get, #to_s
Constructor Details
#initialize(_caller, *list) ⇒ BasicSelect_example
Class constructor.
Init any attributes here. Do not forget to call 'super'!
_caller - the caller object
*list - list of sources for the FROM clause
15 16 17 18 |
# File 'lib/dialects/example-constructor.rb', line 15 def initialize ( _caller, *list ) super # @attr_foo = false end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
You may do mostly anything here, but don’t forget to call method_missing
of the parent ( 'return super' )
40 41 42 |
# File 'lib/dialects/example-constructor.rb', line 40 def method_missing ( method, *args ) return super end |