README.md in intercom-2.2.4 vs README.md in intercom-2.3.0
- old
+ new
@@ -17,11 +17,11 @@
gem install intercom
Using bundler:
- gem 'intercom', "~> 2.2.4"
+ gem 'intercom', "~> 2.3.0"
## Basic Usage
### Configure your access credentials
@@ -326,11 +326,11 @@
```
Note that models generated from webhook notifications might differ slightly from models directly acquired via the API. If this presents a problem, calling `payload.load` will load the model from the API using the `id` field.
### Errors
-You do not need to deal with the HTTP response from an API call directly. If there is an unsuccessful response then an error that is a subclass of Intercom:Error will be raised. If desired, you can get at the http_code of an Intercom::Error via it's `http_code` method.
+You do not need to deal with the HTTP response from an API call directly. If there is an unsuccessful response then an error that is a subclass of Intercom:Error will be raised. If desired, you can get at the http_code of an Intercom::Error via its `http_code` method.
The list of different error subclasses are listed below. As they all inherit off Intercom::Error you can choose to rescue Intercom::Error or
else rescue the more specific error subclass.
```ruby
@@ -341,9 +341,10 @@
Intercom::ResourceNotFound
Intercom::BadRequestError
Intercom::RateLimitExceeded
Intercom::AttributeNotSetError # Raised when you try to call a getter that does not exist on an object
Intercom::MultipleMatchingUsersError
+Intercom::HttpError # Raised when response object is unexpectedly nil
```
### Rate Limiting
Calling `Intercom.rate_limit_details` returns a Hash that contains details about your app's current rate limit.