Class: NPR::Subcategory
Overview
Often, Items are returned by name alphabetically. Each letter would correspond to a Subcategory. A Subcategory has:
-
name
- the name of the Subcategory -
items
- the Items that belong to the Subcategory
Instance Attribute Summary collapse
-
#items ⇒ Object
Returns the value of attribute items.
-
#name ⇒ Object
Returns the value of attribute name.
Method Summary
Methods inherited from Content
Constructor Details
This class inherits a constructor from NPR::Content
Instance Attribute Details
#items ⇒ Object
Returns the value of attribute items.
9 10 11 |
# File 'lib/rubynpr/subcategory.rb', line 9 def items @items end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/rubynpr/subcategory.rb', line 9 def name @name end |