Module: Searchify::Config
- Defined in:
- lib/searchify/config.rb
Class Attribute Summary collapse
-
.column_names ⇒ Object
Returns the value of attribute column_names.
-
.default_action ⇒ Object
Returns the value of attribute default_action.
-
.label_method ⇒ Object
Returns the value of attribute label_method.
-
.limit ⇒ Object
Returns the value of attribute limit.
-
.scope_awareness ⇒ Object
Returns the value of attribute scope_awareness.
-
.scope_exclusion ⇒ Object
Returns the value of attribute scope_exclusion.
-
.search_key ⇒ Object
Returns the value of attribute search_key.
Class Method Summary collapse
Class Attribute Details
.column_names ⇒ Object
Returns the value of attribute column_names.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def column_names @column_names end |
.default_action ⇒ Object
Returns the value of attribute default_action.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def default_action @default_action end |
.label_method ⇒ Object
Returns the value of attribute label_method.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def label_method @label_method end |
.limit ⇒ Object
Returns the value of attribute limit.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def limit @limit end |
.scope_awareness ⇒ Object
Returns the value of attribute scope_awareness.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def scope_awareness @scope_awareness end |
.scope_exclusion ⇒ Object
Returns the value of attribute scope_exclusion.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def scope_exclusion @scope_exclusion end |
.search_key ⇒ Object
Returns the value of attribute search_key.
4 5 6 |
# File 'lib/searchify/config.rb', line 4 def search_key @search_key end |
Class Method Details
.configure(&block) ⇒ Object
12 13 14 |
# File 'lib/searchify/config.rb', line 12 def configure(&block) @configuration = block end |
.configure! ⇒ Object
16 17 18 |
# File 'lib/searchify/config.rb', line 16 def configure! @configuration.call(self) if @configuration end |