README.md in intercom-3.0.2 vs README.md in intercom-3.0.3
- old
+ new
@@ -20,11 +20,11 @@
gem install intercom
Using bundler:
- gem 'intercom', "~> 3.0.2"
+ gem 'intercom', "~> 3.0.3"
## Basic Usage
### Configure your client
@@ -62,10 +62,11 @@
# Find user by id
user = intercom.users.find(:id => "1")
# Create a user
user = intercom.users.create(:email => "bob@example.com", :name => "Bob Smith", :signed_up_at => Time.now.to_i)
# Delete a user
-deleted_user = intercom.users.find(:id => "1").delete
+user = intercom.users.find(:id => "1")
+deleted_user = intercom.users.delete(user)
# Update custom_attributes for a user
user.custom_attributes["average_monthly_spend"] = 1234.56
intercom.users.save(user)
# Perform incrementing
user.increment('karma')