Class: Emojidex::Category

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

Overview

Category information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ Category

Returns a new instance of Category.



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

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#enObject

Returns the value of attribute en.



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

def en
  @en
end

#jaObject

Returns the value of attribute ja.



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

def ja
  @ja
end