Module: Simplewoo::Request
- Included in:
- Client
- Defined in:
- lib/simplewoo/request.rb
Instance Method Summary collapse
- #delete(path, options = {}) ⇒ Object
- #get(path, options = {}) ⇒ Object
- #last_response ⇒ Object
- #post(path, options = {}) ⇒ Object
- #put(path, options = {}) ⇒ Object
Instance Method Details
#delete(path, options = {}) ⇒ Object
16 17 18 |
# File 'lib/simplewoo/request.rb', line 16 def delete(path, ={}) request(:delete, path, ) end |
#get(path, options = {}) ⇒ Object
4 5 6 |
# File 'lib/simplewoo/request.rb', line 4 def get(path, = {}) request(:get, path, ) end |
#last_response ⇒ Object
20 21 22 |
# File 'lib/simplewoo/request.rb', line 20 def last_response @last_response end |
#post(path, options = {}) ⇒ Object
8 9 10 |
# File 'lib/simplewoo/request.rb', line 8 def post(path, = {}) request(:post, path, ) end |
#put(path, options = {}) ⇒ Object
12 13 14 |
# File 'lib/simplewoo/request.rb', line 12 def put(path, ={}) request(:put, path, ) end |