Module ActiveResource::CustomMethods::InstanceMethods
In: vendor/rails/activeresource/lib/active_resource/custom_methods.rb

Methods

delete   get   post   put  

Public Instance methods

[Source]

    # 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

[Source]

    # 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

[Source]

    # 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

[Source]

    # File vendor/rails/activeresource/lib/active_resource/custom_methods.rb, line 86
86:       def put(method_name, options = {}, body = '')
87:         connection.put(custom_method_element_url(method_name, options), body, self.class.headers)
88:       end

[Validate]