Class: Intercom::Service::Tag
Instance Attribute Summary
Attributes inherited from BaseService
#client
Instance Method Summary
collapse
#find
#delete
#find_all
#all
#create, #identity_hash, #save
Methods inherited from BaseService
#collection_name, #from_api, #initialize
Instance Method Details
#collection_class ⇒ Object
16
17
18
|
# File 'lib/intercom/service/tag.rb', line 16
def collection_class
Intercom::Tag
end
|
#collection_proxy_class ⇒ Object
#tag(params) ⇒ Object
24
25
26
27
|
# File 'lib/intercom/service/tag.rb', line 24
def tag(params)
params['tag_or_untag'] = 'tag'
create(params)
end
|
#untag(params) ⇒ Object
29
30
31
32
33
34
35
|
# 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
|