Class: Itiel::Extract::DatabaseTable
- Defined in:
- lib/itiel/extract/database_table.rb
Overview
Instance Attribute Summary collapse
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Attributes inherited from CustomSQL
Attributes included from Nameable
Attributes included from DB::SQLConnectable
#connection, #connection_file_path
Attributes included from ChainedStep
Instance Method Summary collapse
Methods inherited from CustomSQL
Methods included from DB::SQLConnectable
Methods included from ChainedStep
Constructor Details
This class inherits a constructor from Itiel::Extract::CustomSQL
Instance Attribute Details
#table_name ⇒ Object
Returns the value of attribute table_name.
15 16 17 |
# File 'lib/itiel/extract/database_table.rb', line 15 def table_name @table_name end |
Instance Method Details
#extract ⇒ Object
17 18 19 20 |
# File 'lib/itiel/extract/database_table.rb', line 17 def extract db = self.class.sequel_connection(connection) db[table_name.to_sym].all end |