class Emojidex::Data::ComponentSet
Combination information container
Attributes
base[RW]
-
base: the named base that this combination belongs to
-
combinations: combinations starting with this emoji; base/components/component order
-
cutomizations: emoji which start customization of this emoji (this is combination base)
component_layer_order[RW]
-
base: the named base that this combination belongs to
-
combinations: combinations starting with this emoji; base/components/component order
-
cutomizations: emoji which start customization of this emoji (this is combination base)
components[RW]
-
base: the named base that this combination belongs to
-
combinations: combinations starting with this emoji; base/components/component order
-
cutomizations: emoji which start customization of this emoji (this is combination base)
Public Class Methods
new(code, combination_info, details = {})
click to toggle source
# File lib/emojidex/data/emoji/component_set.rb, line 14 def initialize(code, combination_info, details = {}) @base = combination_info[:base] @components = combination_info[:components] if combination_info.include? :component_layer_order @component_layer_order = combination_info[:component_layer_order] else @component_layer_order = [] for i in 0..(@components.length - 1) @component_layer_order << i end end init_asset_info(details) end
Public Instance Methods
to_json(options = {})
click to toggle source
# File lib/emojidex/data/emoji/component_set.rb, line 30 def to_json(options = {}) { base: @base, component_layer_order: @component_layer_order, components: @components, checksums: @checksums }.to_json end