class Intercom::Service::Tag

Public Instance Methods

collection_class() click to toggle source
# File lib/intercom/service/tag.rb, line 16
def collection_class
  Intercom::Tag
end
collection_proxy_class() click to toggle source
# File lib/intercom/service/tag.rb, line 20
def collection_proxy_class
  Intercom::BaseCollectionProxy
end
tag(params) click to toggle source
# File lib/intercom/service/tag.rb, line 24
def tag(params)
  params['tag_or_untag'] = 'tag'
  create(params)
end
untag(params) click to toggle source
# File lib/intercom/service/tag.rb, line 29
def untag(params)
  params['tag_or_untag'] = 'untag'
  params[:companies].each do |company|
    company[:untag] = true
  end
  create(params)
end