Faker Elixir (octopus) v1.0.2 FakerElixir.File

Generate fake data for the domain File

Summary

Functions

Return an extension

Return an extension for the category given

Return a mime

Return a mime for the category given

Return a file name

Return a file name for the category given

Functions

extension()

Return an extension

Examples

iex> FakerElixir.File.extension
"png"
extension(category)

Return an extension for the category given

Allowed categories: :image, :audio, :text, :video, :office

Examples

iex> FakerElixir.File.extension(:audio)
"mp3"
mime()

Return a mime

Examples

iex> FakerElixir.File.mime
"application/javascript"
mime(category)

Return a mime for the category given

Allowed categories: :application, :audio, :image, :message, :model, :multipart, :text, :video

Examples

iex> FakerElixir.File.mime(:message)
"message/rfc822"
name()

Return a file name

Examples

iex> FakerElixir.File.name
"aut.css"
name(category)

Return a file name for the category given

Allowed categories: :image, :audio, :text, :video, :office

Examples

iex> FakerElixir.File.name(:video)
mollitia.avi"