Sha256: daf9a9e697cbc161ea1e5c47a66d915673cbee60ae6f82bec63efd55c6680804

Contents?: true

Size: 254 Bytes

Versions: 1

Compression:

Stored size: 254 Bytes

Contents

require 'digest/md5'

module PictureFrom
  class GravatarPicture

    def picture_from_email(email)
      "http://www.gravatar.com/avatar/#{digest(email)}"
    end

    private

    def digest(email)
      Digest::MD5.hexdigest(email)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picture_from-0.0.1 lib/picture_from/gravatar_picture.rb