Class: Rollin::MonthArchive
- Inherits:
-
Object
- Object
- Rollin::MonthArchive
- Defined in:
- lib/rollin/month_archive.rb
Instance Attribute Summary collapse
-
#articles ⇒ Object
readonly
Returns the value of attribute articles.
-
#month ⇒ Object
readonly
Returns the value of attribute month.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(year, month, articles) ⇒ MonthArchive
constructor
A new instance of MonthArchive.
Constructor Details
#initialize(year, month, articles) ⇒ MonthArchive
Returns a new instance of MonthArchive.
4 5 6 |
# File 'lib/rollin/month_archive.rb', line 4 def initialize(year, month, articles) @year, @month, @articles = year, month, articles end |
Instance Attribute Details
#articles ⇒ Object (readonly)
Returns the value of attribute articles.
2 3 4 |
# File 'lib/rollin/month_archive.rb', line 2 def articles @articles end |
#month ⇒ Object (readonly)
Returns the value of attribute month.
2 3 4 |
# File 'lib/rollin/month_archive.rb', line 2 def month @month end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
2 3 4 |
# File 'lib/rollin/month_archive.rb', line 2 def year @year end |