Class: BazaModels::Ransacker::Context
- Inherits:
-
Object
- Object
- BazaModels::Ransacker::Context
- Defined in:
- lib/baza_models/ransacker/context.rb
Instance Attribute Summary collapse
-
#search_key ⇒ Object
readonly
Returns the value of attribute search_key.
Instance Method Summary collapse
-
#initialize(args) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(args) ⇒ Context
Returns a new instance of Context.
4 5 6 |
# File 'lib/baza_models/ransacker/context.rb', line 4 def initialize(args) @search_key = args.fetch(:search_key) end |
Instance Attribute Details
#search_key ⇒ Object (readonly)
Returns the value of attribute search_key.
2 3 4 |
# File 'lib/baza_models/ransacker/context.rb', line 2 def search_key @search_key end |