Class: Faker::Avatar
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, rand_in_range, 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.join "http://robohash.org/#{slug}" end |