Class: OData::UpdateOperation

Inherits:
CreateOperation show all
Defined in:
lib/odata/update_operation.rb

Instance Attribute Summary

Attributes inherited from Operation

#ar

Instance Method Summary collapse

Methods inherited from CreateOperation

#handle_operation_response, #operation_body

Methods inherited from Operation

#base_url, #check_response_errors, #entity_name, #handle_operation_response, #initialize, #operation_body, #operation_headers, #operation_password, #operation_username, #run, #send_odata, #table_pluralize

Constructor Details

This class inherits a constructor from OData::Operation

Instance Method Details

#operation_callback_nameObject



8
9
10
# File 'lib/odata/update_operation.rb', line 8

def operation_callback_name
  :update
end

#operation_methodObject



4
5
6
# File 'lib/odata/update_operation.rb', line 4

def operation_method
  :patch
end

#operation_urlObject



12
13
14
# File 'lib/odata/update_operation.rb', line 12

def operation_url
  "#{base_url}#{entity_name}(#{@ar.id})"
end