Class: Gravatar

Inherits:
Object
  • Object
show all
Defined in:
lib/motion-gravatar/motion-gravatar.rb

Overview

Class for generating Gravatar URLs.

Class Method Summary collapse

Class Method Details

.getURL(email, size = 80, defaultURL = nil) ⇒ NSURL

Generate the URL for a user’s Gravatar image by providing an email address, image size, and optional default image URL.

Parameters:

  • email (String)
  • size (Integer) (defaults to: 80)

    Between 1 and 512.

  • defaultURL (String) (defaults to: nil)

    (optional)

Returns:

  • (NSURL)


9
10
11
# File 'lib/motion-gravatar/motion-gravatar.rb', line 9

def self.getURL(email, size=80, defaultURL=nil)
  GravatarHelper.getGravatarURL(email, size:size, defaultURL:defaultURL)
end