Class: RingCentralSdk::REST::Request::Base
- Inherits:
-
Object
- Object
- RingCentralSdk::REST::Request::Base
- Defined in:
- lib/ringcentral_sdk/rest/request/base.rb
Overview
Base class for various types of requests.
Instance Method Summary collapse
- #body ⇒ Object
- #content_type ⇒ Object
- #headers ⇒ Object
- #method ⇒ Object
- #params ⇒ Object
- #url ⇒ Object
Instance Method Details
#body ⇒ Object
26 27 28 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 26 def body '' # '' || Hash end |
#content_type ⇒ Object
22 23 24 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 22 def content_type '' end |
#headers ⇒ Object
18 19 20 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 18 def headers {} end |
#method ⇒ Object
6 7 8 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 6 def method 'get' # HTTP methods end |
#params ⇒ Object
14 15 16 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 14 def params {} end |
#url ⇒ Object
10 11 12 |
# File 'lib/ringcentral_sdk/rest/request/base.rb', line 10 def url '' end |