Class: Capitan::Calendar::Monthly

Inherits:
Object
  • Object
show all
Defined in:
lib/capitan/calendar/monthly.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#monthObject (readonly)

Returns the value of attribute month.



6
7
8
# File 'lib/capitan/calendar/monthly.rb', line 6

def month
  @month
end

#weeksObject (readonly)

Returns the value of attribute weeks.



6
7
8
# File 'lib/capitan/calendar/monthly.rb', line 6

def weeks
  @weeks
end

#yearObject (readonly)

Returns the value of attribute year.



6
7
8
# File 'lib/capitan/calendar/monthly.rb', line 6

def year
  @year
end