Browse files

Adding ability to shovel users into tagging/untagging op

  • Loading branch information...
1 parent efc6e19 commit 542b6942c66ce5fe7078aa3f70b9e8a384183f95 @erskingardner erskingardner committed Apr 3, 2013
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/intercom/tag.rb
View
14 lib/intercom/tag.rb
@@ -23,7 +23,7 @@ module Intercom
# Or update a tag and save it like this:
# tag = Intercom::Tag.find_by_name "Super Tag"
# tag.color = "green"
- # tag.user_ids = ['abc123', 'def456']
+ # tag.user_ids << 'abc123'
# tag.tag_or_untag = "untag"
# tag.save
@@ -75,6 +75,18 @@ def color=(color)
##
# An array of user_ids of the users you'd like to tag or untag
+ def user_ids
+ @attributes["user_ids"] ||= []
+ end
+
+ ##
+ # An array of user_ids of the users you'd like to tag or untag
+ def emails
+ @attributes["emails"] ||= []
+ end
+
+ ##
+ # An array of user_ids of the users you'd like to tag or untag
def user_ids=(user_ids)
@attributes["user_ids"] = user_ids
end

0 comments on commit 542b694

Please sign in to comment.