class JAGG::Gravatar

The Gravatar class (and it's namespaces) are used to convert the data from Gravatar's API into objects.

Public Class Methods

http_client() click to toggle source

Get the HTTP Client.

@return [HTTPClient] A HTTPClient instance. @example

JAGG::Gravatar.http_client
# File lib/jagg/gravatar.rb, line 13
def http_client
  return @client if @client

  @client = HTTPClient.new
  @client.redirect_uri_callback = Proc.new { |uri, result| result.header['location'][0] }
  @client
end