--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Grab a single record by its key. Supports natural and composite key lookups as well.
- !ruby/struct:SM::Flow::VERB 
  body: "  Zoo.get(1)                # get the zoo with primary key of 1.\n  Zoo.get!(1)               # Or get! if you want an ObjectNotFoundError on failure\n  Zoo.get('DFW')            # wow, support for natural primary keys\n  Zoo.get('Metro', 'DFW')   # more wow, composite key look-up\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Object] *key"
- !ruby/struct:SM::Flow::VERB 
  body: "  The primary key or keys to use for lookup\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource,NilClass]"
- !ruby/struct:SM::Flow::VERB 
  body: "  A single model that was found\n  If no instance was found matching <tt>key</tt>\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Model#get
is_singleton: false
name: get
params: (*key)
visibility: public
