Class: Friendly::Table
Instance Attribute Summary (collapse)
-
- (Object) datastore
readonly
Returns the value of attribute datastore.
Instance Method Summary (collapse)
-
- (Table) initialize(datastore)
constructor
A new instance of Table.
- - (Object) table_name
Methods inherited from Storage
#all, #count, #create, #destroy, #first, #satisfies?, #update
Constructor Details
- (Table) initialize(datastore)
A new instance of Table
6 7 8 |
# File 'lib/friendly/table.rb', line 6 def initialize(datastore) @datastore = datastore end |
Instance Attribute Details
- (Object) datastore (readonly)
Returns the value of attribute datastore
4 5 6 |
# File 'lib/friendly/table.rb', line 4 def datastore @datastore end |
Instance Method Details
- (Object) table_name
10 11 12 |
# File 'lib/friendly/table.rb', line 10 def table_name raise NotImplementedError, "#{self.class.name}#table_name is not implemented." end |