Module: Searchify::Config

Defined in:
lib/searchify/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.column_namesObject

Returns the value of attribute column_names.



4
5
6
# File 'lib/searchify/config.rb', line 4

def column_names
  @column_names
end

.default_actionObject

Returns the value of attribute default_action.



4
5
6
# File 'lib/searchify/config.rb', line 4

def default_action
  @default_action
end

.label_methodObject

Returns the value of attribute label_method.



4
5
6
# File 'lib/searchify/config.rb', line 4

def label_method
  @label_method
end

.limitObject

Returns the value of attribute limit.



4
5
6
# File 'lib/searchify/config.rb', line 4

def limit
  @limit
end

.scope_awarenessObject

Returns the value of attribute scope_awareness.



4
5
6
# File 'lib/searchify/config.rb', line 4

def scope_awareness
  @scope_awareness
end

.scope_exclusionObject

Returns the value of attribute scope_exclusion.



4
5
6
# File 'lib/searchify/config.rb', line 4

def scope_exclusion
  @scope_exclusion
end

.search_keyObject

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