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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Get the average value of a property
- !ruby/struct:SM::Flow::P 
  body: "@example the average age of all friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.avg(:age)\n"
- !ruby/struct:SM::Flow::P 
  body: "@example the average age of all female friends"
- !ruby/struct:SM::Flow::VERB 
  body: "  Friend.avg(:age, :conditions =&gt; [ 'gender = ?', 'female' ])\n"
- !ruby/struct:SM::Flow::P 
  body: "@param property [Symbol] the property you wish to get the average value of @param opts [Hash, Symbol] the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@return [Integer] return the average value of a property given the conditions"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Aggregates::Functions#avg
is_singleton: false
name: avg
params: (*args)
visibility: public
