Methods
Public Instance methods
[ show source ]
# File activeresource/lib/active_resource/custom_methods.rb, line 105 105: def delete(method_name, options = {}) 106: connection.delete(custom_method_element_url(method_name, options), self.class.headers) 107: end
[ show source ]
# File 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
[ show source ]
# File activeresource/lib/active_resource/custom_methods.rb, line 92 92: def post(method_name, options = {}, body = nil) 93: request_body = body.blank? ? encode : body 94: if new? 95: connection.post(custom_method_new_element_url(method_name, options), request_body, self.class.headers) 96: else 97: connection.post(custom_method_element_url(method_name, options), request_body, self.class.headers) 98: end 99: end
[ show source ]
# File activeresource/lib/active_resource/custom_methods.rb, line 101 101: def put(method_name, options = {}, body = '') 102: connection.put(custom_method_element_url(method_name, options), body, self.class.headers) 103: end