Class: Adocsite::Category
- Inherits:
-
Object
- Object
- Adocsite::Category
- Defined in:
- lib/adocsite/content_types.rb
Instance Attribute Summary collapse
-
#articles ⇒ Object
readonly
Returns the value of attribute articles.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, articles) ⇒ Category
constructor
A new instance of Category.
Constructor Details
#initialize(name, articles) ⇒ Category
Returns a new instance of Category.
52 53 54 55 |
# File 'lib/adocsite/content_types.rb', line 52 def initialize(name, articles) @name = name @articles = articles end |
Instance Attribute Details
#articles ⇒ Object (readonly)
Returns the value of attribute articles.
51 52 53 |
# File 'lib/adocsite/content_types.rb', line 51 def articles @articles end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
51 52 53 |
# File 'lib/adocsite/content_types.rb', line 51 def name @name end |