Class: Faker::Avatar

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/avatar.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, flexible, letterify, method_missing, numerify, parse, regexify, translate

Class Method Details

.image(slug = nil) ⇒ Object



4
5
6
7
# File 'lib/faker/avatar.rb', line 4

def image(slug=nil)
  slug ||= Faker::Lorem.words
  "http://robohash.org/#{slug}"
end