Module: RExchange

Defined in:
lib/rexchange.rb,
lib/rexchange/note.rb,
lib/rexchange/task.rb,
lib/rexchange/folder.rb,
lib/rexchange/contact.rb,
lib/rexchange/message.rb,
lib/rexchange/session.rb,
lib/rexchange/appointment.rb,
lib/rexchange/credentials.rb,
lib/rexchange/generic_item.rb,
lib/rexchange/dav_move_request.rb,
lib/rexchange/exchange_request.rb,
lib/rexchange/dav_search_request.rb

Defined Under Namespace

Classes: Appointment, Contact, Credentials, DavMoveRequest, DavSearchRequest, ExchangeRequest, Folder, FolderNotFoundError, GenericItem, Message, Note, Session, Task

Constant Summary collapse

DEBUG_STREAM =

Use STDOUT or another stream if you'd like to capture the HTTP debug output

$log

Class Method Summary collapse

Class Method Details

.open(uri, username = nil, password = nil) {|session| ... } ⇒ Object

A shortcut to RExchange::Session#new

Yields:

  • (session)

22
23
24
25
26
27
# File 'lib/rexchange.rb', line 22

def self.open(uri, username = nil, password = nil)
  session = RExchange::Session.new(uri, username, password)
  
  yield session if block_given?
  return session
end