Ruby implementation for Firebase