4 attr :model, :list_name, :list_manifest, :type,
5 :default_page_size, :max_page_size
7 def initialize model, list_name, list_manifest
10 @list_manifest = list_manifest
16 @list_manifest['args'] ||= {}
18 @default_page_size = @conf['default_page_size'] || 25
19 @max_page_size = @conf['max_page_size'] || 100
20 @params_offset = params_offset
21 @params_count = params_count
22 @list_list_conf = @manifest.list(@item_name).lists[list_name] || {}
23 @model_name = @list_list_conf['model']
24 @filter_key = @list_list_conf['filter_key']
25 @model = @model_name.classify.constantize
26 @table_name = @model.table_name
28 @owner_model = @model.owner_model
29 @owner_table_name = @owner_model.table_name if @owner_model
34 @type = @list_manifest['type']
35 @args = @list_manifest['args']