app/models/friends_group_builder.rb
# Fetch users over an entire period with limit
# Separated for test
Fetch users over an entire period with limit
Separated for test
Fetch users over an entire period with limit Separated for test
def users(uid, limit:)
      TwitterUser.creation_completed.
          where(uid: uid).
          select(:id, :uid, :created_at).
          order(created_at: :desc).
          limit(limit).
          reverse
    end
def users ( uid , limit : ) TwitterUser . creation_completed . where ( uid : uid ) . select ( :id , :uid , :created_at ) . order ( created_at : :desc ) . limit ( limit ) . reverse end
Fetch users over an entire period with limit
Separated for test
Fetch users over an entire period with limit Separated for test
uid
<not_specific>
limit
<not_specific>