Class: Enklawa::Api::Category
- Inherits:
-
Struct
- Object
- Struct
- Enklawa::Api::Category
- Defined in:
- lib/enklawa/api/category.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/enklawa/api/category.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/enklawa/api/category.rb', line 3 def name @name end |
Instance Method Details
#to_h ⇒ Object
5 6 7 8 9 10 |
# File 'lib/enklawa/api/category.rb', line 5 def to_h { id: id, name: name } end |