Class: BrickFTP::RESTfulAPI::DeleteBundle

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/brick_ftp/restful_api/delete_bundle.rb

Overview

Delete a bundle

See Also:

Instance Method Summary collapse

Methods included from Command

included, #initialize

Instance Method Details

#call(id) ⇒ Object

Deletes the specified bundle.

Parameters:

  • id (Integer)

    Globally unique identifier of each bundle.



16
17
18
19
# File 'lib/brick_ftp/restful_api/delete_bundle.rb', line 16

def call(id)
  client.delete("/api/rest/v1/bundles/#{id}.json")
  true
end