Module: Freshdesk::Request
- Included in:
- Util::Client
- Defined in:
- lib/freshdesk/api/v2/util/request.rb
Instance Method Summary collapse
- #delete(path, options = {}, body = {}) ⇒ Object
- #get(path, options = {}, body = {}) ⇒ Object
- #post(path, options = {}, body = {}) ⇒ Object
- #put(path, options = {}, body = {}) ⇒ Object
Instance Method Details
#delete(path, options = {}, body = {}) ⇒ Object
15 16 17 |
# File 'lib/freshdesk/api/v2/util/request.rb', line 15 def delete(path, = {}, body = {}) self.class.delete(prepare_path(path), (, body)) end |
#get(path, options = {}, body = {}) ⇒ Object
3 4 5 |
# File 'lib/freshdesk/api/v2/util/request.rb', line 3 def get(path, = {}, body = {}) self.class.get(prepare_path(path), (, body)) end |
#post(path, options = {}, body = {}) ⇒ Object
11 12 13 |
# File 'lib/freshdesk/api/v2/util/request.rb', line 11 def post(path, = {}, body = {}) handle_response self.class.post(prepare_path(path), (, body)) end |
#put(path, options = {}, body = {}) ⇒ Object
7 8 9 |
# File 'lib/freshdesk/api/v2/util/request.rb', line 7 def put(path, = {}, body = {}) self.class.put(prepare_path(path), (, body)) end |