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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Lookup a Resource in the Collection by key
- !ruby/struct:SM::Flow::P 
  body: This looksup a Resource by key, typecasting the key to the proper object if necessary.
- !ruby/struct:SM::Flow::VERB 
  body: "  toyotas = Cars.all(:manufacturer =&gt; 'Toyota')\n  toyo = Cars.first(:manufacturer =&gt; 'Toyota')\n  toyotas.get(toyo.id) == toyo                  #=&gt; true\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Enumerable] *key"
- !ruby/struct:SM::Flow::VERB 
  body: "  keys which uniquely identify a resource in the Collection\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource]"
- !ruby/struct:SM::Flow::VERB 
  body: "  Resource which matches the supplied key\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [nil]"
- !ruby/struct:SM::Flow::VERB 
  body: "  No Resource matches the supplied key\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Collection#get
is_singleton: false
name: get
params: (*key)
visibility: public
