Method: NCore::All::ClassMethods#first

Defined in:
lib/ncore/methods/all.rb

#first(params = {}) ⇒ Object



20
21
22
23
# File 'lib/ncore/methods/all.rb', line 20

def first(params={})
  params = params.with_indifferent_access.merge(max_results: 1)
  all(params).first
end