Class: OData::DeleteOperation
Instance Attribute Summary
Attributes inherited from Operation
#ar
Instance Method Summary
collapse
Methods inherited from Operation
#base_url, #check_response_errors, #entity_name, #initialize, #operation_headers, #operation_password, #operation_username, #run, #send_odata, #table_pluralize
Instance Method Details
#handle_operation_response(response) ⇒ Object
4
5
6
|
# File 'lib/odata/delete_operation.rb', line 4
def handle_operation_response(response)
check_response_errors(response)
end
|
#operation_body ⇒ Object
8
9
10
11
|
# File 'lib/odata/delete_operation.rb', line 8
def operation_body
body = {}
body.to_json
end
|
#operation_callback_name ⇒ Object
17
18
19
|
# File 'lib/odata/delete_operation.rb', line 17
def operation_callback_name
:destroy
end
|
#operation_method ⇒ Object
13
14
15
|
# File 'lib/odata/delete_operation.rb', line 13
def operation_method
:delete
end
|
#operation_url ⇒ Object
21
22
23
|
# File 'lib/odata/delete_operation.rb', line 21
def operation_url
"#{base_url}#{entity_name}(#{@ar.id})"
end
|