module SteemData::ActsAsMathematical

Public Class Methods

included(base) click to toggle source
# File lib/steem_data/acts_as_mathematical.rb, line 3
def self.included(base)
  def base.average(key)
    sum(key) / count
  end
end