Module: RemoteResource::REST

Defined in:
lib/remote_resource/rest.rb

Instance Method Summary collapse

Instance Method Details

#delete(attributes = {}, connection_options = {}) ⇒ Object



20
21
22
# File 'lib/remote_resource/rest.rb', line 20

def delete(attributes = {}, connection_options = {})
  RemoteResource::Request.new(self, __method__, attributes, connection_options).perform
end

#get(attributes = {}, connection_options = {}) ⇒ Object



4
5
6
# File 'lib/remote_resource/rest.rb', line 4

def get(attributes = {}, connection_options = {})
  RemoteResource::Request.new(self, __method__, attributes, connection_options).perform
end

#patch(attributes = {}, connection_options = {}) ⇒ Object



12
13
14
# File 'lib/remote_resource/rest.rb', line 12

def patch(attributes = {}, connection_options = {})
  RemoteResource::Request.new(self, __method__, attributes, connection_options).perform
end

#post(attributes = {}, connection_options = {}) ⇒ Object



16
17
18
# File 'lib/remote_resource/rest.rb', line 16

def post(attributes = {}, connection_options = {})
  RemoteResource::Request.new(self, __method__, attributes, connection_options).perform
end

#put(attributes = {}, connection_options = {}) ⇒ Object



8
9
10
# File 'lib/remote_resource/rest.rb', line 8

def put(attributes = {}, connection_options = {})
  RemoteResource::Request.new(self, __method__, attributes, connection_options).perform
end