Class: Faker::SlackEmoji

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

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.activityString

Produces a random slack emoji from activity category.

Examples:

Faker::SlackEmoji.activity #=> ":soccer:"

Returns:

  • (String)

Available since:

  • 1.5.0


67
68
69
# File 'lib/faker/default/slack_emoji.rb', line 67

def activity
  fetch('slack_emoji.activity')
end

.celebrationString

Produces a random slack emoji from celebration category.

Examples:

Faker::SlackEmoji.celebration #=> ":tada:"

Returns:

  • (String)

Available since:

  • 1.5.0


54
55
56
# File 'lib/faker/default/slack_emoji.rb', line 54

def celebration
  fetch('slack_emoji.celebration')
end

.customString

Produces a random slack emoji from custom category.

Examples:

Faker::SlackEmoji.custom #=> ":slack:"

Returns:

  • (String)

Available since:

  • 1.5.0


106
107
108
# File 'lib/faker/default/slack_emoji.rb', line 106

def custom
  fetch('slack_emoji.custom')
end

.emojiString

Produces a random slack emoji from any category.

Examples:

Faker::SlackEmoji.emoji #=> ":pizza:"

Returns:

  • (String)

Available since:

  • 1.5.0


119
120
121
# File 'lib/faker/default/slack_emoji.rb', line 119

def emoji
  parse('slack_emoji.emoji')
end

.food_and_drinkString

Produces a random slack emoji from food and drink category.

Examples:

Faker::SlackEmoji.food_and_drink #=> ":beers:"

Returns:

  • (String)

Available since:

  • 1.5.0


41
42
43
# File 'lib/faker/default/slack_emoji.rb', line 41

def food_and_drink
  fetch('slack_emoji.food_and_drink')
end

.natureString

Produces a random slack emoji from nature category.

Examples:

Faker::SlackEmoji.nature #=> ":mount_fuji:"

Returns:

  • (String)

Available since:

  • 1.5.0


28
29
30
# File 'lib/faker/default/slack_emoji.rb', line 28

def nature
  fetch('slack_emoji.nature')
end

.objects_and_symbolsString

Produces a random slack emoji from objects and symbols category.

Examples:

Faker::SlackEmoji.objects_and_symbols #=> ":id:"

Returns:

  • (String)

Available since:

  • 1.5.0


93
94
95
# File 'lib/faker/default/slack_emoji.rb', line 93

def objects_and_symbols
  fetch('slack_emoji.objects_and_symbols')
end

.peopleString

Produces a random slack emoji from people category.

Examples:

Faker::SlackEmoji.people #=> ":sleepy:"

Returns:

  • (String)

Available since:

  • 1.5.0


15
16
17
# File 'lib/faker/default/slack_emoji.rb', line 15

def people
  fetch('slack_emoji.people')
end

.travel_and_placesString

Produces a random slack emoji from travel and places category.

Examples:

Faker::SlackEmoji.travel_and_places #=> ":metro:"

Returns:

  • (String)

Available since:

  • 1.5.0


80
81
82
# File 'lib/faker/default/slack_emoji.rb', line 80

def travel_and_places
  fetch('slack_emoji.travel_and_places')
end