Class: NPR::Subcategory

Inherits:
Content show all
Defined in:
lib/rubynpr/subcategory.rb

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

Method Summary

Methods inherited from Content

#initialize

Constructor Details

This class inherits a constructor from NPR::Content

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



9
10
11
# File 'lib/rubynpr/subcategory.rb', line 9

def items
  @items
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/rubynpr/subcategory.rb', line 9

def name
  @name
end