Module: Freshdesk::Request

Included in:
Util::Client
Defined in:
lib/freshdesk/api/v2/util/request.rb

Instance Method Summary collapse

Instance Method Details

#delete(path, options = {}, body = {}) ⇒ Object



15
16
17
# File 'lib/freshdesk/api/v2/util/request.rb', line 15

def delete(path, options = {}, body = {})
  self.class.delete(prepare_path(path), prepare_options(options, body))
end

#get(path, options = {}, body = {}) ⇒ Object



3
4
5
# File 'lib/freshdesk/api/v2/util/request.rb', line 3

def get(path, options = {}, body = {})
  self.class.get(prepare_path(path), prepare_options(options, body))
end

#post(path, options = {}, body = {}) ⇒ Object



11
12
13
# File 'lib/freshdesk/api/v2/util/request.rb', line 11

def post(path, options = {}, body = {})
  handle_response self.class.post(prepare_path(path), prepare_options(options, body))
end

#put(path, options = {}, body = {}) ⇒ Object



7
8
9
# File 'lib/freshdesk/api/v2/util/request.rb', line 7

def put(path, options = {}, body = {})
  self.class.put(prepare_path(path), prepare_options(options, body))
end