Class: RingCentralSdk::REST::Request::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ringcentral_sdk/rest/request/base.rb

Overview

Base class for various types of requests.

Direct Known Subclasses

Multipart, Simple

Instance Method Summary collapse

Instance Method Details

#bodyObject



26
27
28
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 26

def body
  '' # '' || Hash
end

#content_typeObject



22
23
24
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 22

def content_type
  ''
end

#headersObject



18
19
20
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 18

def headers
  {}
end

#methodObject



6
7
8
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 6

def method
  'get' # HTTP methods
end

#paramsObject



14
15
16
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 14

def params
  {}
end

#urlObject



10
11
12
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 10

def url
  ''
end