Class: Orghunter::Category
- Inherits:
-
Object
- Object
- Orghunter::Category
- Defined in:
- lib/orghunter/category.rb
Instance Attribute Summary collapse
-
#category_id ⇒ Object
readonly
Returns the value of attribute category_id.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Instance Method Summary collapse
-
#initialize(args) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(args) ⇒ Category
Returns a new instance of Category.
5 6 7 8 |
# File 'lib/orghunter/category.rb', line 5 def initialize(args) @category_id = args['categoryId'] @description = args['categoryDesc'] end |
Instance Attribute Details
#category_id ⇒ Object (readonly)
Returns the value of attribute category_id.
3 4 5 |
# File 'lib/orghunter/category.rb', line 3 def category_id @category_id end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/orghunter/category.rb', line 3 def description @description end |