zenchild/Viewpoint — pull request #57 by windix (2013-01-03 05:19:30+00:00)
Title: Fix undefined method `items'

Hi,

I wrote an CLI app for new email notification (https://github.com/luxbet/outlook_notifier) using Viewpoint, but always have such error when calling e.g. find_by_name:

```
/home/fengwe/git/Viewpoint/lib/ews/folder_accessors.rb:73:in `find_by_name': undefined method `items' for # (NoMethodError)
from ./check.rb:67:in `block in

'
from ./check.rb:67:in `collect'
from ./check.rb:67:in `

'
```

Here are the request and response:

```
DEBUG Viewpoint::EWS::SOAP::ExchangeWebService : Sending SOAP Request:
----------------

Default

----------------

DEBUG Viewpoint::EWS::SOAP::ExchangeWebService : Received SOAP Response:
----------------

NoError

Inbox
3454
0
0

```

You can see there is no "items" under Folder element. Don't know if it is common or just because of our setting.

I managed to fix that in this pull request. for your reference.

Cheers,
Wei