Module: JAGG

Defined in:
lib/jagg.rb,
lib/jagg/gravatar.rb,
lib/jagg/constants.rb,
lib/jagg/gravatar/image.rb,
lib/jagg/gravatar/profile.rb

Overview

JAGG is a Gravatar API client that supports both images and profiles.

Examples:

Get the URL for an email address

JAGG::Gravatar::Image.url('[email protected]') #=> "https://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af"

Fetch a user’s profile

JAGG::Gravatar::Profile.for('[email protected]') #=> #<JAGG::Gravatar::Profile:0x00000000000000 ...>

Defined Under Namespace

Classes: Gravatar

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.load!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Load the gem’s dependencies



14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/jagg.rb', line 14

def load!
  require 'argspec'
  require 'digest/md5'
  require 'httpclient'
  require 'json'
  require 'uri'

  require 'jagg/constants'
  require 'jagg/helpers/string'
  require 'jagg/gravatar'
  require 'jagg/gravatar/image'
  require 'jagg/gravatar/profile'
end