Module: Copy::Operations::Delete::ClassMethods

Defined in:
lib/copy/operations/delete.rb

Instance Method Summary collapse

Instance Method Details

#delete(attributes = {}) ⇒ Object

Deletes the given object

Parameters:

  • id (Integer)

    The id of the object that gets deleted



8
9
10
11
12
13
14
15
16
17
# File 'lib/copy/operations/delete.rb', line 8

def delete(attributes={})
  id = attributes.delete(:id)
  response = Copy.request( :delete,
    nil,
    api_member_url(id, :delete),
    {},
    options_for_request(attributes)
  )
  true
end