Method: DynaModel::Query::ClassMethods#read_first

Defined in:
lib/dyna_model/query.rb

#read_first(hash_value, options = {}) ⇒ Object



119
120
121
122
# File 'lib/dyna_model/query.rb', line 119

def read_first(hash_value, options={})
  options[:limit] = 1
  self.read_range(hash_value, options).first
end