Class: Friendly::Table

Inherits:
Storage show all
Defined in:
lib/friendly/table.rb

Direct Known Subclasses

DocumentTable, Index

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#datastoreObject (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_nameObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/friendly/table.rb', line 10

def table_name
  raise NotImplementedError, "#{self.class.name}#table_name is not implemented."
end