Module | ActiveResource::CustomMethods::InstanceMethods |
In: |
vendor/rails/activeresource/lib/active_resource/custom_methods.rb
|
# File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 104 104: def delete(method_name, options = {}) 105: connection.delete(custom_method_element_url(method_name, options), self.class.headers) 106: end
# File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 88 88: def get(method_name, options = {}) 89: connection.get(custom_method_element_url(method_name, options), self.class.headers) 90: end
# File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 92 92: def post(method_name, options = {}, body = '') 93: if new? 94: connection.post(custom_method_new_element_url(method_name, options), (body.nil? ? to_xml : body), self.class.headers) 95: else 96: connection.post(custom_method_element_url(method_name, options), body, self.class.headers) 97: end 98: end