README.md in intercom-2.0.3 vs README.md in intercom-2.1.0
- old
+ new
@@ -9,10 +9,12 @@
For generating Intercom javascript script tags for Rails, please see https://github.com/intercom/intercom-rails
## Upgrading information
Version 2 of intercom-ruby is not backwards compatible with previous versions. Be sure to test this new version before deploying to production. One other change you will need to make as part of the upgrade is to set `Intercom.app_api_key` and not set `Intercom.api_key` (you can continue to use your existing API key).
+Additionally, the new version uses Ruby 2.
+
## Installation
gem install intercom
Using bundler:
@@ -60,9 +62,15 @@
# Perform incrementing
user.increment('karma'); user.save
# Iterate over all users
Intercom::User.all.each {|user| puts %Q(#{user.email} - #{user.custom_attributes["average_monthly_spend"]}) }
Intercom::User.all.map {|user| user.email }
+```
+
+#### Admins
+```ruby
+# Iterate over all admins
+Intercom::Admin.all.each {|admin| puts admin.email }
```
#### Companies
```ruby
# Add a user to one or more companies