Class: MiOS::Category
- Inherits:
-
Object
- Object
- MiOS::Category
- Defined in:
- lib/mios/category.rb
Instance Attribute Summary collapse
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label, ids) ⇒ Category
constructor
A new instance of Category.
- #to_s ⇒ Object
Constructor Details
#initialize(label, ids) ⇒ Category
Returns a new instance of Category.
5 6 7 8 |
# File 'lib/mios/category.rb', line 5 def initialize(label, ids) @label = label @ids = ids end |
Instance Attribute Details
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
3 4 5 |
# File 'lib/mios/category.rb', line 3 def ids @ids end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/mios/category.rb', line 3 def label @label end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/mios/category.rb', line 10 def to_s label end |