1
0
mirror of https://github.com/askn/faker.git synced 2023-08-10 21:13:01 +03:00

add avatar

This commit is contained in:
Aşkın Gedik 2016-01-07 11:37:49 +02:00
parent 7d8998e74d
commit 30f4048ba4

8
src/faker/avatar.cr Normal file
View File

@ -0,0 +1,8 @@
module Faker
class Avatar
def self.image(slug = nil)
slug ||= Faker::Lorem.word
"http://robohash.org/#{slug}"
end
end
end