Class: Orghunter::Category

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute category_id.



3
4
5
# File 'lib/orghunter/category.rb', line 3

def category_id
  @category_id
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/orghunter/category.rb', line 3

def description
  @description
end