Class: Intercom::Service::ExportContent

Inherits:
BaseService show all
Includes:
ApiOperations::Find, ApiOperations::List, ApiOperations::Load, ApiOperations::Save
Defined in:
lib/intercom/service/export_content.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods included from ApiOperations::Save

#create, #identity_hash, #save

Methods included from ApiOperations::Find

#find

Methods included from ApiOperations::List

#all

Methods included from ApiOperations::Load

#load

Methods inherited from BaseService

#collection_proxy_class, #from_api, #initialize

Constructor Details

This class inherits a constructor from Intercom::Service::BaseService

Instance Method Details

#cancel(id) ⇒ Object



22
23
24
25
# File 'lib/intercom/service/export_content.rb', line 22

def cancel(id)
  response = @client.post("/export/cancel/#{id}", {})
  collection_class.new.from_response(response)
end

#collection_classObject



14
15
16
# File 'lib/intercom/service/export_content.rb', line 14

def collection_class
  Intercom::ExportContent
end

#collection_nameObject



18
19
20
# File 'lib/intercom/service/export_content.rb', line 18

def collection_name
  'export/content/data'
end