Class: Platforms::Yammer::Api::UploadedFiles

Inherits:
Base
  • Object
show all
Defined in:
lib/platforms/yammer/api/uploaded_files.rb

Overview

Uploaded file in Yammer

Author:

  • Benjamin Elias

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Platforms::Yammer::Api::Base

Instance Method Details

#delete(id, options = {}, headers = {}) ⇒ Faraday::Response

Delete an uploaded file

Parameters:

  • id (#to_s)

    ID of file to delete

  • options (Hash) (defaults to: {})

    Options for the request

  • headers (Hash) (defaults to: {})

    Additional headers to send with the request

Returns:

  • (Faraday::Response)

    the API response

See Also:

Since:

  • 0.1.0



15
16
17
# File 'lib/platforms/yammer/api/uploaded_files.rb', line 15

def delete id, options={}, headers={}
  @connection.delete "uploaded_files/#{id}.json", options, headers
end