Module: Card::Set::Type::SearchType::Format

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod035-card-mod-search/type/search_type.rb,
card/tmpsets/set/mod036-card-mod-search/type/search_type.rb

Instance Method Summary collapse

Instance Method Details

#chunk_listObject



16
17
18
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 16

def chunk_list
  :query
end

#search_result_viewObject



20
21
22
23
24
25
26
27
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 20

def search_result_view
  case search_with_params
  when Exception              then :search_error
  when Integer                then :search_count
  when nest_mode == :template then :raw
  else                         :card_list
  end
end

#view: coreObject



12
13
14
# File 'card/tmpsets/set/mod035-card-mod-search/type/search_type.rb', line 12

view :core, cache: :never do
  _render search_result_view
end