Method: Camdram::Client#termly_diary
- Defined in:
- lib/camdram/client.rb
#termly_diary(year, term = nil) ⇒ Camdram::Diary
Gets a diary object which contains an array of events occuring in the given year/term
212 213 214 215 216 217 218 |
# File 'lib/camdram/client.rb', line 212 def termly_diary(year, term=nil) url = "/diary/#{year}" url << "/#{term}" if term url << ".json" response = get(url) Diary.new(response) end |