Class: Tableficate::Filter::CollectionBase
- Defined in:
- lib/tableficate/filters/collection_base.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Attributes inherited from Base
#attrs, #field_name, #label, #label_options, #name, #table, #template
Instance Method Summary collapse
-
#initialize(table, name, options = {}) ⇒ CollectionBase
constructor
A new instance of CollectionBase.
Methods inherited from Base
Constructor Details
#initialize(table, name, options = {}) ⇒ CollectionBase
Returns a new instance of CollectionBase.
6 7 8 9 10 |
# File 'lib/tableficate/filters/collection_base.rb', line 6 def initialize(table, name, = {}) @collection = .delete(:collection) || [] super(table, name, ) end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'lib/tableficate/filters/collection_base.rb', line 4 def collection @collection end |