Class: Yuriita::Search

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/yuriita/search.rb

Instance Method Summary collapse

Constructor Details

#initialize(table, param_key) ⇒ Search

Returns a new instance of Search.



7
8
9
10
11
# File 'lib/yuriita/search.rb', line 7

def initialize(table, param_key)
  define_singleton_method(param_key) do
    table.q
  end
end