# File 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 lib/active_resource/custom_methods.rb, line 87 87: def get(method_name, options = {}) 88: connection.get(custom_method_element_url(method_name, options), self.class.headers) 89: end
# File lib/active_resource/custom_methods.rb, line 91 91: def post(method_name, options = {}, body = nil) 92: request_body = body.blank? ? encode : body 93: if new? 94: connection.post(custom_method_new_element_url(method_name, options), request_body, self.class.headers) 95: else 96: connection.post(custom_method_element_url(method_name, options), request_body, self.class.headers) 97: end 98: end
# File lib/active_resource/custom_methods.rb, line 110 110: def custom_method_element_url(method_name, options = {}) 111: "#{self.class.prefix(prefix_options)}#{self.class.collection_name}/#{id}/#{method_name}.#{self.class.format.extension}#{self.class.__send__(:query_string, options)}" 112: end
# File lib/active_resource/custom_methods.rb, line 114 114: def custom_method_new_element_url(method_name, options = {}) 115: "#{self.class.prefix(prefix_options)}#{self.class.collection_name}/new/#{method_name}.#{self.class.format.extension}#{self.class.__send__(:query_string, options)}" 116: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.