class Somemoji::EmojiExtractors::EmojiOneEmojiExtractor
Constants
- HOST
Private Instance Methods
directory_name()
click to toggle source
# File lib/somemoji/emoji_extractors/emoji_one_emoji_extractor.rb, line 8 def directory_name case when @format == "svg" "svg" when [128, 512].include?(@size) "png_#{@size}x#{@size}" else "png" end end
emojis()
click to toggle source
@note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
# File lib/somemoji/emoji_extractors/emoji_one_emoji_extractor.rb, line 20 def emojis ::Somemoji.emoji_one_emoji_collection end
find_remote_emoji_path(emoji)
click to toggle source
@note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
# File lib/somemoji/emoji_extractors/emoji_one_emoji_extractor.rb, line 25 def find_remote_emoji_path(emoji) "/Ranks/emojione/v2.2.6/assets/#{directory_name}/#{emoji.abbreviated_code_points.join('-')}.#{extension}" end
host()
click to toggle source
@note Implementation for Somemoji::EmojiExtractors::DownloadableEmojiExtractor
@return [String]
# File lib/somemoji/emoji_extractors/emoji_one_emoji_extractor.rb, line 31 def host HOST end