Class: Emojidex::Data::Category
- Inherits:
-
Object
- Object
- Emojidex::Data::Category
- Defined in:
- lib/emojidex/data/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.
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
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/emojidex/data/category.rb', line 5 def code @code end |
#en ⇒ Object
Returns the value of attribute en.
5 6 7 |
# File 'lib/emojidex/data/category.rb', line 5 def en @en end |
#ja ⇒ Object
Returns the value of attribute ja.
5 6 7 |
# File 'lib/emojidex/data/category.rb', line 5 def ja @ja end |