Client library for Affinity in ruby