class Looks::Gravatar::Address

Attributes

email[R]
image[R]

Public Class Methods

new(email, image) click to toggle source
# File lib/looks/gravatar/address.rb, line 17
def initialize(email, image)
  @email = email
  @image = image
end
new_from_addresses(key, value) click to toggle source
# File lib/looks/gravatar/address.rb, line 8
def self.new_from_addresses(key, value)
  email = key
  image = Image.new_from_addresses(value)

  new(email, image)
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/looks/gravatar/address.rb, line 22
def <=>(other)
  email <=> other.email
end
to_s() click to toggle source
# File lib/looks/gravatar/address.rb, line 26
def to_s
  email
end