Module: Tumblr::Request
- Included in:
- Client
- Defined in:
- lib/tumblr/request.rb
Instance Method Summary collapse
- #delete(path) ⇒ Object
- #get(path, params = {}) ⇒ Object
- #post(path, *params) ⇒ Object
- #put(path) ⇒ Object
Instance Method Details
#delete(path) ⇒ Object
20 21 22 |
# File 'lib/tumblr/request.rb', line 20 def delete(path) make_request(:delete, path) end |
#get(path, params = {}) ⇒ Object
8 9 10 |
# File 'lib/tumblr/request.rb', line 8 def get(path,params={}) make_request(:get, build_query(path, params)) end |
#post(path, *params) ⇒ Object
12 13 14 |
# File 'lib/tumblr/request.rb', line 12 def post(path, *params) make_request(:post, path, *params) end |
#put(path) ⇒ Object
16 17 18 |
# File 'lib/tumblr/request.rb', line 16 def put(path) make_request(:put, path) end |