Class: MassiveRecord::Wrapper::TablesCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/massive_record/wrapper/tables_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



5
6
7
# File 'lib/massive_record/wrapper/tables_collection.rb', line 5

def connection
  @connection
end

Instance Method Details

#load(table_name) ⇒ Object



7
8
9
# File 'lib/massive_record/wrapper/tables_collection.rb', line 7

def load(table_name)
  ADAPTER::Table.new(connection, table_name)
end