lib/namespace.rb in inbox-0.4.1 vs lib/namespace.rb in inbox-0.4.2

- old
+ new

@@ -2,10 +2,12 @@ require 'tag' require 'message' require 'draft' require 'contact' require 'file' +require 'calendar' +require 'event' # Rather than saying require 'thread', we need to explicitly force # the thread model to load. Otherwise, we can't reference it below. # Thread still refers to the built-in Thread type, and Inbox::Thread # is undefined. @@ -43,9 +45,17 @@ @drafts ||= RestfulModelCollection.new(Draft, @_api, @id) end def contacts @contacts ||= RestfulModelCollection.new(Contact, @_api, @id) + end + + def calendars + @calendars ||= RestfulModelCollection.new(Calendar, @_api, @id) + end + + def events + @events ||= RestfulModelCollection.new(Event, @_api, @id) end end end \ No newline at end of file