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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Finds the first Resource by conditions, or creates a new Resource with the attributes if none found
- !ruby/struct:SM::Flow::P 
  body: "@param [Hash] conditions"
- !ruby/struct:SM::Flow::VERB 
  body: "  The conditions to be used to search\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Hash] attributes"
- !ruby/struct:SM::Flow::VERB 
  body: "  The attributes to be used to create the record of none is found.\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Resource]"
- !ruby/struct:SM::Flow::VERB 
  body: "  The instance found by <tt>query</tt>, or created with <tt>attributes</tt> if none found\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Model#first_or_create
is_singleton: false
name: first_or_create
params: (conditions = {}, attributes = {})
visibility: public
