Module: Card::Set::Abstract::Filter::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
card/tmpsets/set/mod035-card-mod-search/abstract/03_filter.rb,
card/tmpsets/set/mod036-card-mod-search/abstract/03_filter.rb

Instance Method Summary collapse

Instance Method Details

#filter_classObject



11
12
13
# File 'card/tmpsets/set/mod035-card-mod-search/abstract/03_filter.rb', line 11

def filter_class
  Card::FilterQuery
end

#filter_keysObject



15
16
17
# File 'card/tmpsets/set/mod035-card-mod-search/abstract/03_filter.rb', line 15

def filter_keys
  [:name]
end

#filter_keys_from_paramsObject



19
20
21
# File 'card/tmpsets/set/mod035-card-mod-search/abstract/03_filter.rb', line 19

def filter_keys_from_params
  filter_hash.keys.map(&:to_sym) - [:not_ids]
end

#sort_optionsObject



23
24
25
# File 'card/tmpsets/set/mod035-card-mod-search/abstract/03_filter.rb', line 23

def sort_options
  { "Alphabetical": :name, "Recently Added": :create }
end