Class: Capitan::Calendar::Monthly
- Inherits:
-
Object
- Object
- Capitan::Calendar::Monthly
- Defined in:
- lib/capitan/calendar/monthly.rb
Instance Attribute Summary collapse
-
#month ⇒ Object
readonly
Returns the value of attribute month.
-
#weeks ⇒ Object
readonly
Returns the value of attribute weeks.
-
#year ⇒ Object
readonly
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(year, month) ⇒ Monthly
constructor
A new instance of Monthly.
Constructor Details
#initialize(year, month) ⇒ Monthly
Returns a new instance of Monthly.
8 9 10 11 12 13 |
# File 'lib/capitan/calendar/monthly.rb', line 8 def initialize(year, month) url = "calendar/monthly/#{year}/#{month}" connection = Capitan::Connection.new response = connection.invoke_with_path(url) process_response(response) end |
Instance Attribute Details
#month ⇒ Object (readonly)
Returns the value of attribute month.
6 7 8 |
# File 'lib/capitan/calendar/monthly.rb', line 6 def month @month end |
#weeks ⇒ Object (readonly)
Returns the value of attribute weeks.
6 7 8 |
# File 'lib/capitan/calendar/monthly.rb', line 6 def weeks @weeks end |
#year ⇒ Object (readonly)
Returns the value of attribute year.
6 7 8 |
# File 'lib/capitan/calendar/monthly.rb', line 6 def year @year end |