Class: Emojidex::Category
- Inherits:
-
Object
- Object
- Emojidex::Category
- Defined in:
- lib/emojidex/category.rb
Overview
Category information
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#en ⇒ Object
Returns the value of attribute en.
-
#ja ⇒ Object
Returns the value of attribute ja.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ Category
constructor
A new instance of Category.
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
#code ⇒ Object
Returns the value of attribute code.
6 7 8 |
# File 'lib/emojidex/category.rb', line 6 def code @code end |
#en ⇒ Object
Returns the value of attribute en.
6 7 8 |
# File 'lib/emojidex/category.rb', line 6 def en @en end |
#ja ⇒ Object
Returns the value of attribute ja.
6 7 8 |
# File 'lib/emojidex/category.rb', line 6 def ja @ja end |