mirror of
https://github.com/askn/faker.git
synced 2023-08-10 21:13:01 +03:00
add avatar
This commit is contained in:
parent
7d8998e74d
commit
30f4048ba4
8
src/faker/avatar.cr
Normal file
8
src/faker/avatar.cr
Normal 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
|
Loading…
Reference in New Issue
Block a user