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