Module: Workarea::Search::Query::ClassMethods

Defined in:
app/queries/workarea/search/query.rb

Instance Method Summary collapse

Instance Method Details

#document(klass = nil) ⇒ Object



12
13
14
# File 'app/queries/workarea/search/query.rb', line 12

def document(klass = nil)
  @document ||= klass
end

#find(id) ⇒ Object



16
17
18
# File 'app/queries/workarea/search/query.rb', line 16

def find(id)
  new(JSON.parse(id))
end