'Record usage of a resource.'

@classmethod
def ratelimit(cls, user_limit=None, ip_limit=None):

    if (user_limit and c.user_is_loggedin):
        user_limit.record_usage()
    if ip_limit:
        ip_limit.record_usage()
