Class: Emojidex::Data::Category

Inherits:
Object
  • Object
show all
Defined in:
lib/emojidex/data/category.rb

Overview

Category information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ Category

Returns a new instance of Category.



7
8
9
10
11
# File 'lib/emojidex/data/category.rb', line 7

def initialize(details = {})
  @code = details[:code].to_sym
  @en = details[:en]
  @ja = details[:ja]
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/emojidex/data/category.rb', line 5

def code
  @code
end

#enObject

Returns the value of attribute en.



5
6
7
# File 'lib/emojidex/data/category.rb', line 5

def en
  @en
end

#jaObject

Returns the value of attribute ja.



5
6
7
# File 'lib/emojidex/data/category.rb', line 5

def ja
  @ja
end