Class: Rollin::MonthArchive

Inherits:
Object
  • Object
show all
Defined in:
lib/rollin/month_archive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#articlesObject (readonly)

Returns the value of attribute articles.



2
3
4
# File 'lib/rollin/month_archive.rb', line 2

def articles
  @articles
end

#monthObject (readonly)

Returns the value of attribute month.



2
3
4
# File 'lib/rollin/month_archive.rb', line 2

def month
  @month
end

#yearObject (readonly)

Returns the value of attribute year.



2
3
4
# File 'lib/rollin/month_archive.rb', line 2

def year
  @year
end