Class: Tabulatr::ParamsBuilder
- Inherits:
-
Object
- Object
- Tabulatr::ParamsBuilder
- Defined in:
- lib/tabulatr/params_builder.rb
Constant Summary collapse
- ALLOWED_PARAMS =
[:header, :filter, :sortable, :data_html, :header_html, :filter_sql, :sort_sql, :sql, :width, :align, :wrap, :format, :filter_label, :name, :classes]
- DEPRECATED_PARAMS =
[]
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ParamsBuilder
constructor
A new instance of ParamsBuilder.
- #update(params = {}) ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ ParamsBuilder
Returns a new instance of ParamsBuilder.
10 11 12 |
# File 'lib/tabulatr/params_builder.rb', line 10 def initialize(params = {}) apply_params(params) end |
Instance Method Details
#update(params = {}) ⇒ Object
14 15 16 |
# File 'lib/tabulatr/params_builder.rb', line 14 def update(params = {}) apply_params(params) end |