Sha256: de71d72ad4c890efcd8ab15abedb6c4172a4c83f78092996367625ac79fc3507
Contents?: true
Size: 881 Bytes
Versions: 8
Compression:
Stored size: 881 Bytes
Contents
require 'intercom/service/base_service' require 'intercom/api_operations/save' require 'intercom/api_operations/list' require 'intercom/api_operations/find_all' require 'intercom/api_operations/find' module Intercom module Service class Tag < BaseService include ApiOperations::Save include ApiOperations::List include ApiOperations::FindAll include ApiOperations::Delete include ApiOperations::Find def collection_class Intercom::Tag end def collection_proxy_class Intercom::BaseCollectionProxy end def tag(params) params['tag_or_untag'] = 'tag' create(params) end def untag(params) params['tag_or_untag'] = 'untag' params[:companies].each do |company| company[:untag] = true end create(params) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems