Class: Tabulatr::ParamsBuilder

Inherits:
Object
  • Object
show all
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

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