Class: Emojidex::Data::UTF

Inherits:
Collection show all
Includes:
StaticCollection
Defined in:
lib/emojidex/data/utf.rb

Overview

listing and search of standard UTF emoji

Instance Attribute Summary

Attributes inherited from Collection

#categories, #emoji, #r18, #raster_source_path, #source_path, #vector_source_path

Attributes included from CollectionMojiData

#moji_code_index, #moji_code_string

Attributes included from CollectionCache

#cache_path, #download_queue, #download_threads, #formats, #sizes

Instance Method Summary collapse

Methods included from StaticCollection

#check_and_load_static, #load_from_server

Methods inherited from Collection

#add_emoji, #category, #category?, #collect, #each, #emojis, #find_by_code, #find_by_code_ja, #find_by_moji, #find_by_unicode, #load_local_collection, #map, #remove_emoji, #search, #select

Methods included from CollectionMojiData

#condense_moji_code_data

Methods included from CollectionAssetInformation

#generate_checksums, #generate_paths, #get_checksums, #get_combo_checksums, #get_combo_paths, #get_paths, #get_paths?

Methods included from CollectionCache

#cache, #cache!, #cache_index, #load_cache, #setup_cache, #write_index

Constructor Details

#initialize(opts = {}) ⇒ UTF

Returns a new instance of UTF.



10
11
12
13
14
15
16
# File 'lib/emojidex/data/utf.rb', line 10

def initialize(opts = {})
  super(opts)
  @endpoint = 'utf_emoji'
  @locale = opts[:locale] || Emojidex::Defaults.locale
  load_from_server((opts[:detailed] || true), @locale) unless check_and_load_static('utf')
  @emoji
end