Class: Intercom::Service::ExportContent
- Inherits:
-
BaseService
- Object
- BaseService
- Intercom::Service::ExportContent
- Defined in:
- lib/intercom/service/export_content.rb
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
Methods included from ApiOperations::Save
#create, #identity_hash, #save
Methods included from ApiOperations::Find
Methods included from ApiOperations::List
Methods included from ApiOperations::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_class ⇒ Object
14 15 16 |
# File 'lib/intercom/service/export_content.rb', line 14 def collection_class Intercom::ExportContent end |
#collection_name ⇒ Object
18 19 20 |
# File 'lib/intercom/service/export_content.rb', line 18 def collection_name 'export/content/data' end |