Class: Brainshell::Commands::Base
- Inherits:
-
Thor
- Object
- Thor
- Brainshell::Commands::Base
show all
- Includes:
- ValueFormatter
- Defined in:
- lib/brainshell/commands/base.rb
Constant Summary
ValueFormatter::KNOWN_FORMAT_METHODS
Class Method Summary
collapse
#format_value
Class Method Details
.define_query_options ⇒ Object
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/brainshell/commands/base.rb', line 11
def define_query_options
multiple_search_fields.each do |field|
method_option field, type: :array
end
text_search_fields.each do |field|
method_option field
end
range_search_fields.each do |field|
method_option field
end
end
|
.multiple_search_fields ⇒ Object
24
|
# File 'lib/brainshell/commands/base.rb', line 24
def multiple_search_fields; [] end
|
.range_search_fields ⇒ Object
25
|
# File 'lib/brainshell/commands/base.rb', line 25
def range_search_fields; [] end
|
.text_search_fields ⇒ Object
23
|
# File 'lib/brainshell/commands/base.rb', line 23
def text_search_fields; [] end
|