Module: FatZebra::APIOperation::Delete::ClassMethods

Defined in:
lib/fat_zebra/api_operation/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(id, options = {}) ⇒ FatZebra::Object

Delete an API Resource

Parameters:

  • id (String)

    for the request

  • Additional (Hash)

    options for the request

Returns:

  • (FatZebra::Object)

    response from the API



17
18
19
20
# File 'lib/fat_zebra/api_operation/delete.rb', line 17

def delete(id, options = {})
  response = request(:delete, "#{resource_path}/#{id}", options)
  initialize_from(response)
end