Class: MiOS::Category

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idsObject (readonly)

Returns the value of attribute ids.



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

def ids
  @ids
end

#labelObject (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_sObject



10
11
12
# File 'lib/mios/category.rb', line 10

def to_s
  label
end