| 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 90
90: def delete(method_name, options = {})
91: connection.delete(custom_method_element_url(method_name, options), self.class.headers)
92: end
# File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 74
74: def get(method_name, options = {})
75: connection.get(custom_method_element_url(method_name, options), self.class.headers)
76: end
# File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 78
78: def post(method_name, options = {}, body = '')
79: if new?
80: connection.post(custom_method_new_element_url(method_name, options), (body.nil? ? to_xml : body), self.class.headers)
81: else
82: connection.post(custom_method_element_url(method_name, options), body, self.class.headers)
83: end
84: end