Gravatar.com, mainly known for its avatar hosting. But users can store more than only an avatar at gravatar.

This gem also allows you to easily access it all (accounts at other social networks, more photo’s, the name of the user, saved websites, cryptocurrency accounts and more)

Creating an instance is easy:

Or use the even shorter class Gravatar:

After creating an instance you can get some basics fast using

Feel free to contribute to the project and add your own “short getters”.

All the available information is saved in a hash. Use user.hash to get the hash. As an alternative it is also possible to easily read from the hash.

Fork on GithubGem Version