Class: Snaptable::Constructor::BaseTable
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Snaptable::Constructor::BaseTable
- Includes:
- Collection, Renderer, Sortable
- Defined in:
- lib/snaptable/constructor/base_table.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(parent, collection = nil, options = {}) ⇒ BaseTable
constructor
A new instance of BaseTable.
- #options ⇒ Object
- #url ⇒ Object
Methods included from Renderer
#attributes, #column_names, #enums, #format, #present, #respond, #values
Methods included from Collection
#collection, #filter, #records
Methods included from Sortable
#css_class, #direction, #page, #sort_column, #sort_direction, #sortable
Constructor Details
#initialize(parent, collection = nil, options = {}) ⇒ BaseTable
Returns a new instance of BaseTable.
13 14 15 16 17 18 |
# File 'lib/snaptable/constructor/base_table.rb', line 13 def initialize(parent, collection = nil, = {}) super(parent) @collection = collection @options = @token = stored_token if Snaptable. end |
Instance Method Details
#options ⇒ Object
20 21 22 |
# File 'lib/snaptable/constructor/base_table.rb', line 20 def @options end |
#url ⇒ Object
24 25 26 |
# File 'lib/snaptable/constructor/base_table.rb', line 24 def url :id end |