Module: RemoteResource::REST
- Defined in:
- lib/remote_resource/rest.rb
Instance Method Summary collapse
- #delete(attributes = {}, connection_options = {}) ⇒ Object
- #get(attributes = {}, connection_options = {}) ⇒ Object
- #patch(attributes = {}, connection_options = {}) ⇒ Object
- #post(attributes = {}, connection_options = {}) ⇒ Object
- #put(attributes = {}, connection_options = {}) ⇒ Object
Instance Method Details
#delete(attributes = {}, connection_options = {}) ⇒ Object
20 21 22 |
# File 'lib/remote_resource/rest.rb', line 20 def delete(attributes = {}, = {}) RemoteResource::Request.new(self, __method__, attributes, ).perform end |
#get(attributes = {}, connection_options = {}) ⇒ Object
4 5 6 |
# File 'lib/remote_resource/rest.rb', line 4 def get(attributes = {}, = {}) RemoteResource::Request.new(self, __method__, attributes, ).perform end |
#patch(attributes = {}, connection_options = {}) ⇒ Object
12 13 14 |
# File 'lib/remote_resource/rest.rb', line 12 def patch(attributes = {}, = {}) RemoteResource::Request.new(self, __method__, attributes, ).perform end |
#post(attributes = {}, connection_options = {}) ⇒ Object
16 17 18 |
# File 'lib/remote_resource/rest.rb', line 16 def post(attributes = {}, = {}) RemoteResource::Request.new(self, __method__, attributes, ).perform end |
#put(attributes = {}, connection_options = {}) ⇒ Object
8 9 10 |
# File 'lib/remote_resource/rest.rb', line 8 def put(attributes = {}, = {}) RemoteResource::Request.new(self, __method__, attributes, ).perform end |