Class: BrickFTP::RESTfulAPI::DeleteBehavior

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

Overview

Delete a behavior

See Also:

Instance Method Summary collapse

Methods included from Command

included, #initialize

Instance Method Details

#call(id) ⇒ Object

Deletes a behavior.

Parameters:

  • id (Integer)

    Globally unique identifier of each behavior.



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

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