ringcentral_sdk 1.3.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile.lock +70 -33
  4. data/{LICENSE.txt → LICENSE.md} +0 -0
  5. data/README.md +40 -76
  6. data/lib/ringcentral_sdk.rb +4 -3
  7. data/lib/ringcentral_sdk/rest.rb +18 -17
  8. data/lib/ringcentral_sdk/rest/cache.rb +9 -3
  9. data/lib/ringcentral_sdk/rest/cache/extensions.rb +91 -94
  10. data/lib/ringcentral_sdk/rest/client.rb +196 -202
  11. data/lib/ringcentral_sdk/rest/configuration.rb +91 -0
  12. data/lib/ringcentral_sdk/rest/event.rb +44 -43
  13. data/lib/ringcentral_sdk/rest/extension.rb +12 -9
  14. data/lib/ringcentral_sdk/rest/extension_presence.rb +73 -78
  15. data/lib/ringcentral_sdk/rest/messages.rb +40 -31
  16. data/lib/ringcentral_sdk/rest/messages_retriever.rb +30 -33
  17. data/lib/ringcentral_sdk/rest/request.rb +10 -5
  18. data/lib/ringcentral_sdk/rest/request/base.rb +24 -19
  19. data/lib/ringcentral_sdk/rest/request/fax.rb +88 -91
  20. data/lib/ringcentral_sdk/rest/request/inflator.rb +9 -2
  21. data/lib/ringcentral_sdk/rest/request/inflator/contact_info.rb +19 -12
  22. data/lib/ringcentral_sdk/rest/request/simple.rb +24 -34
  23. data/lib/ringcentral_sdk/rest/simple_client.rb +63 -78
  24. data/lib/ringcentral_sdk/rest/subscription.rb +223 -228
  25. data/test/test_base.rb +5 -5
  26. data/test/test_client.rb +87 -88
  27. data/test/test_event.rb +28 -11
  28. data/test/test_extension_presence.rb +64 -62
  29. data/test/test_helper_fax.rb +46 -47
  30. data/test/test_helper_inflator_contact_info.rb +8 -10
  31. data/test/test_helper_request.rb +1 -1
  32. data/test/test_setup.rb +24 -21
  33. data/test/test_subscription.rb +46 -48
  34. metadata +72 -33
  35. data/lib/ringcentral_sdk/rest/config.rb +0 -102
  36. data/test/test_config.rb +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1a2876be06d2d3859a901c48e2fb82e8f20dbab
4
- data.tar.gz: d5880e56002faeb10805a63e46495983684ac048
3
+ metadata.gz: 9ce21745b447bf882a9636dcfd3a4bcf8f62c011
4
+ data.tar.gz: 8d3bbb5a2321d7b562b69b0ff03b2379c0432140
5
5
  SHA512:
6
- metadata.gz: 67094c9631d3e4f3a7836912e5888b0e227993332bab6a162feb872a70971903ed83743e47f80af185be595c01a2a391f71b30abfee87438af10705fc5d1f54c
7
- data.tar.gz: 96d30902643ddd0f038bc04d8fd81ed1a7c5354f711e589f619f6b35ca3ef7626b34149ed04a1f4408ad62520d279cd8256222a5c880f914f5b85e244b86a88a
6
+ metadata.gz: 1c5329a5af10c38274942c3cf502e15ebf77f609e0408a14abf95d74693892a9efe90594f05e2765d42f7be92775b94f65af30348350bcf9e35cb0ee44cdca5f
7
+ data.tar.gz: 358783efa3adf397bc5edf845d04ad9cb3e464de876cebf8b2276a2f2c1204fc13280833f86a0e89e8ec7131db9b71a97a80ab98ee787b4356c8db98ce8eb5a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  CHANGELOG
2
2
  ---------
3
+ - **2016-12-28**: 2.0.0
4
+ - Breaking Changes
5
+ - New block-based config, replacing old method param and env config
6
+ - Additions
7
+ - Add auto-retry request using `FaradayMiddleware::Request::Retry`
8
+ - Add configurable logger
9
+ - Update
10
+ - Update `pubnub` dependency to `4.0.16` from `3.8.x`
11
+ - Update `rake` dependency to `12.x.x` from `11.x.x`
12
+ - Update gemspec to include dependency versions
13
+ - Bugfixes
14
+ - Fix `logger.level` default setting
3
15
  - **2016-09-05**: 1.3.4
4
16
  - Bugfixes
5
17
  - Fix `RingCentralSdk::REST::Subscription` renewal bug
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ringcentral_sdk (1.3.3)
4
+ ringcentral_sdk (2.0.0)
5
5
  dotenv (~> 2.1, >= 2.1.0)
6
- faraday (~> 0.9, >= 0.9)
6
+ faraday (~> 0, >= 0)
7
7
  faraday_middleware (~> 0, >= 0)
8
8
  faraday_middleware-oauth2_refresh (~> 0)
9
+ faraday_middleware-request-retry (~> 0.1, >= 0.1.0)
9
10
  jsondoc (~> 0.1, >= 0.1.0)
10
- logger
11
+ logger (~> 1)
11
12
  mime (~> 0.4, >= 0.4.3)
12
13
  mime-types (~> 3.1)
13
- mime_builder (~> 0)
14
+ mime_builder (~> 0, >= 0.0.4)
14
15
  multi_json (~> 1.3)
15
16
  oauth2 (~> 1.0, >= 1.0.0)
16
- pubnub (~> 3.8)
17
+ pubnub (~> 4.0)
17
18
 
18
19
  GEM
19
20
  remote: https://rubygems.org/
@@ -35,39 +36,73 @@ GEM
35
36
  timers (>= 4.1.1)
36
37
  celluloid-supervision (0.20.6)
37
38
  timers (>= 4.1.1)
38
- coveralls (0.8.15)
39
+ concurrent-ruby (1.0.3)
40
+ coveralls (0.8.17)
39
41
  json (>= 1.8, < 3)
40
42
  simplecov (~> 0.12.0)
41
43
  term-ansicolor (~> 1.3)
42
44
  thor (~> 0.19.1)
43
- tins (>= 1.6.0, < 2)
45
+ tins (~> 1.6)
44
46
  docile (1.1.5)
45
47
  dotenv (2.1.1)
48
+ dry-configurable (0.5.0)
49
+ concurrent-ruby (~> 1.0)
50
+ dry-container (0.6.0)
51
+ concurrent-ruby (~> 1.0)
52
+ dry-configurable (~> 0.1, >= 0.1.3)
53
+ dry-core (0.2.1)
54
+ concurrent-ruby (~> 1.0)
55
+ dry-equalizer (0.2.0)
56
+ dry-logic (0.4.0)
57
+ dry-container (~> 0.2, >= 0.2.6)
58
+ dry-core (~> 0.1)
59
+ dry-equalizer (~> 0.2)
60
+ dry-types (0.9.3)
61
+ concurrent-ruby (~> 1.0)
62
+ dry-configurable (~> 0.1)
63
+ dry-container (~> 0.3)
64
+ dry-core (~> 0.2, >= 0.2.1)
65
+ dry-equalizer (~> 0.2)
66
+ dry-logic (~> 0.4, >= 0.4.0)
67
+ inflecto (~> 0.0.0, >= 0.0.2)
68
+ dry-validation (0.10.4)
69
+ concurrent-ruby (~> 1.0)
70
+ dry-configurable (~> 0.1, >= 0.1.3)
71
+ dry-container (~> 0.2, >= 0.2.8)
72
+ dry-core (~> 0.2, >= 0.2.1)
73
+ dry-equalizer (~> 0.2)
74
+ dry-logic (~> 0.4, >= 0.4.0)
75
+ dry-types (~> 0.9, >= 0.9.0)
46
76
  faraday (0.9.2)
47
77
  multipart-post (>= 1.2, < 3)
48
- faraday_middleware (0.10.0)
49
- faraday (>= 0.7.4, < 0.10)
78
+ faraday_middleware (0.10.1)
79
+ faraday (>= 0.7.4, < 1.0)
50
80
  faraday_middleware-oauth2_refresh (0.0.3)
51
81
  faraday (~> 0.9, >= 0.9)
52
82
  faraday_middleware (~> 0, >= 0)
83
+ faraday_middleware-request-retry (0.1.0)
84
+ faraday (~> 0.9, >= 0.9)
85
+ faraday_middleware (~> 0, >= 0)
53
86
  hitimes (1.2.4)
54
- httpclient (2.8.2.3)
55
- json (1.8.3)
87
+ httpclient (2.8.3)
88
+ inflecto (0.0.2)
89
+ json (2.0.2)
56
90
  jsondoc (0.1.3)
57
- jwt (1.5.4)
91
+ jwt (1.5.6)
58
92
  logger (1.2.8)
59
93
  metaclass (0.0.4)
60
94
  mime (0.4.3)
61
95
  mime-types (3.1)
62
96
  mime-types-data (~> 3.2015)
63
97
  mime-types-data (3.2016.0521)
64
- mime_builder (0.0.3)
65
- mime
66
- mime-types (>= 1.25)
67
- mocha (1.1.0)
98
+ mime_builder (0.0.4)
99
+ mime (~> 0.4, >= 0.4.3)
100
+ mime-types (~> 3.1)
101
+ multi_json (~> 1, >= 1.12.1)
102
+ mocha (1.2.1)
68
103
  metaclass (~> 0.0.1)
69
104
  multi_json (1.12.1)
70
- multi_xml (0.5.5)
105
+ multi_xml (0.6.0)
71
106
  multipart-post (2.0.0)
72
107
  oauth2 (1.2.0)
73
108
  faraday (>= 0.8, < 0.10)
@@ -75,37 +110,39 @@ GEM
75
110
  multi_json (~> 1.3)
76
111
  multi_xml (~> 0.5)
77
112
  rack (>= 1.2, < 3)
78
- power_assert (0.3.0)
79
- pubnub (3.8.2)
113
+ power_assert (0.4.1)
114
+ pubnub (4.0.17)
80
115
  celluloid (~> 0.17)
81
- httpclient (~> 2.6)
82
- json (~> 1.8)
116
+ dry-validation (~> 0.10)
117
+ httpclient (~> 2.8)
118
+ json (>= 1.8, < 3)
83
119
  rack (2.0.1)
84
- rake (11.2.2)
120
+ rake (12.0.0)
85
121
  simplecov (0.12.0)
86
122
  docile (~> 1.1.0)
87
123
  json (>= 1.8, < 3)
88
124
  simplecov-html (~> 0.10.0)
89
125
  simplecov-html (0.10.0)
90
- term-ansicolor (1.3.2)
126
+ term-ansicolor (1.4.0)
91
127
  tins (~> 1.0)
92
- test-unit (3.2.1)
128
+ test-unit (3.2.3)
93
129
  power_assert
94
- thor (0.19.1)
95
- timers (4.1.1)
130
+ thor (0.19.4)
131
+ timers (4.1.2)
96
132
  hitimes
97
- tins (1.12.0)
133
+ tins (1.13.0)
98
134
 
99
135
  PLATFORMS
100
136
  ruby
101
137
 
102
138
  DEPENDENCIES
103
- coveralls
104
- mocha
105
- rake
139
+ bundler (~> 1)
140
+ coveralls (~> 0)
141
+ mocha (~> 1)
142
+ rake (~> 12)
106
143
  ringcentral_sdk!
107
- simplecov
108
- test-unit
144
+ simplecov (~> 0)
145
+ test-unit (~> 3)
109
146
 
110
147
  BUNDLED WITH
111
- 1.12.5
148
+ 1.13.6
File without changes
data/README.md CHANGED
@@ -5,6 +5,7 @@ RingCentral SDK for Ruby
5
5
  [![Build Status][build-status-svg]][build-status-link]
6
6
  [![Coverage Status][coverage-status-svg]][coverage-status-link]
7
7
  [![Dependency Status][dependency-status-svg]][dependency-status-link]
8
+ [![Codacy Badge][codacy-svg]][codacy-link]
8
9
  [![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
9
10
  [![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
10
11
  [![Downloads][downloads-svg]][downloads-link]
@@ -12,17 +13,15 @@ RingCentral SDK for Ruby
12
13
  [![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
13
14
  [![License][license-svg]][license-link]
14
15
 
16
+ [![Stories in Ready][story-status-svg]][story-status-link]
17
+
15
18
  ## Table of contents
16
19
 
17
20
  1. [Overview](#overview)
18
21
  2. [Documentation](#documentation)
19
22
  3. [Installation](#installation)
20
23
  4. [Usage](#usage)
21
- 1. [Instantiation](#instantiation)
22
- 1. [Authorization](#authorization)
23
- 1. [Password Grant](#password-grant)
24
- 1. [Authorization Code Grant](#authorization-code-grant)
25
- 1. [Token Reuse](#token-reuse)
24
+ 1. [Synopsis](#synopsis)
26
25
  1. [API Requests](#api-requests)
27
26
  1. [Generic HTTP Requests](#generic-http-requests)
28
27
  2. [SMS Example](#sms-example)
@@ -38,12 +37,15 @@ RingCentral SDK for Ruby
38
37
 
39
38
  ## Overview
40
39
 
41
- ##### :warning: YOU MUST HAVE A RINGCENTRAL ACCOUNT TO USE THE API :warning:
42
- ##### Get an account at: https://developers.ringcentral.com/login.html
40
+ A Ruby SDK for the [RingCentral REST API](https://developers.ringcentral.com).
41
+
42
+ ## Important Notes
43
43
 
44
- www.ringcentral.com - RingCentral Complete Cloud Communications System.
44
+ Version 2.0.0 introduces the following backward breaking changes:
45
45
 
46
- A library for using the [RingCentral REST API](https://developers.ringcentral.com). [Click here to read the full documentation](http://ringcentral-sdk-ruby.readthedocs.org/).
46
+ * SDK instantiation by moving to a block-based configuration
47
+ * Removal of `RingCentralSdk::REST::Config` class
48
+ * Removal of `RingCentralSdk::REST::Client.authorize_user` method
47
49
 
48
50
  ## Documentation
49
51
 
@@ -77,57 +79,35 @@ $ gem install ringcentral_sdk
77
79
 
78
80
  ## Usage
79
81
 
80
- ### Instantiation and Authorization
81
-
82
- How you instantiate the SDK can depend on whether you use OAuth 2.0 password grant or the authorization code grant which are both described here.
83
-
84
- It is also necessary to specify your RingCentral API end point URL which are included constants:
85
-
86
- * `RingCentralSdk::RC_SERVER_PRODUCTION`
87
- * `RingCentralSdk::RC_SERVER_SANDBOX`
88
-
89
- #### Password Grant
90
-
91
- The OAuth 2.0 resource owner password grant flow is designed for server applications where the app and resource owners are the same.
82
+ ### Synopsis
92
83
 
93
84
  ```ruby
94
- require 'ringcentral_sdk'
95
-
96
- # Returns RingCentralSdk::Platform instance
97
- client = RingCentralSdk::REST::Client.new(
98
- 'myAppKey',
99
- 'myAppSecret',
100
- RingCentralSdk::RC_SERVER_SANDBOX
101
- )
85
+ require 'rinngcentral_sdk'
102
86
 
103
- # extension will default to company admin extension if not provided
104
- client.authorize_password('myUsername', 'myExtension', 'myPassword')
105
- ```
87
+ client = RingCentralSdk::REST::Client.new do |config|
88
+ # App info (mandatory)
89
+ config.app_key = 'myAppKey'
90
+ config.app_secret = 'myAppSecret'
91
+ config.server_url = RingCentralSdk::RC_SERVER_SANDBOX
106
92
 
107
- #### Authorization Code Grant
93
+ # User info for password grant (optional)
94
+ config.username = 'myUsername'
95
+ config.extension = 'myExtension'
96
+ config.password = 'myPassword'
108
97
 
109
- The OAuth 2.0 authorization code grant is designed for where authorization needs to be granted by a 3rd party resource owner.
98
+ # Set a custom logger (optional)
99
+ config.logger = Logger.new(STDOUT)
110
100
 
111
- Using the default authorization URL:
101
+ # Enable HTTP retries for 429 and 503 errors
102
+ config.retry = true
103
+ end
112
104
 
113
- ```ruby
114
- # Initialize SDK with OAuth redirect URI
115
- client = RingCentralSdk::REST::Client.new(
116
- 'myAppKey',
117
- 'myAppSecret',
118
- RingCentralSdk::RC_SERVER_SANDBOX,
119
- redirect_uri: 'http://example.com/oauth'
105
+ # Send SMS
106
+ res = client.messages.sms.create(
107
+ from: '+16505551212',
108
+ to: '+14155551212',
109
+ text: 'Hi there!'
120
110
  )
121
-
122
- # Retrieve OAuth authorize url using default redirect URL
123
- auth_url = client.authorize_url()
124
- ```
125
-
126
- On your redirect page, you can exchange your authorization code for an access token using the following:
127
-
128
- ```ruby
129
- code = params['code'] # e.g. using Sinatra to retrieve code param in Redirect URI
130
- client.authorize_code(code)
131
111
  ```
132
112
 
133
113
  More information on the authorization code flow:
@@ -135,26 +115,6 @@ More information on the authorization code flow:
135
115
  1. [Full documentation](http://ringcentral-sdk-ruby.readthedocs.org/en/latest/usage/authorization/Authorization/#authorization-code-grant)
136
116
  2. [Sinatra example](scripts/oauth2-sinatra)
137
117
 
138
- #### Token Reuse
139
-
140
- The platform class performs token refresh procedure automatically if needed. To save the access and refresh tokens between instances of the SDK, you can save and reuse the token as follows:
141
-
142
- ```ruby
143
- # Access `OAuth2::AccessToken` object as hash
144
- token_hash = client.token.to_hash
145
- ```
146
-
147
- You can reload the token hash in another instance of the SDK as follows:
148
-
149
- ```ruby
150
- # set_token() accepts a hash or OAuth2::AccessToken object
151
- client.set_token(token_hash)
152
- ```
153
-
154
- Important! You have to manually maintain synchronization of SDK's between requests if you share authentication. When two simultaneous requests will perform refresh, only one will succeed. One of the solutions would be to have semaphor and pause other pending requests while one of them is performing refresh.
155
-
156
- See [the authorization docs](http://ringcentral-sdk-ruby.readthedocs.org/en/latest/usage/authorization/Authorization/) for more info including token reuse.
157
-
158
118
  ### API Requests
159
119
 
160
120
  API requests can be made via the included `Faraday` client or `RingCentralSdk::Helpers::Request` subclasses. These are described below.
@@ -275,7 +235,7 @@ RingCentral Official SDKs
275
235
 
276
236
  ## License
277
237
 
278
- RingCentral SDK is available under an MIT-style license. See [LICENSE.txt](LICENSE.txt) for details.
238
+ RingCentral SDK is available under an MIT-style license. See [LICENSE.md](LICENSE.md) for details.
279
239
 
280
240
  RingCentral SDK &copy; 2015-2016 by John Wang
281
241
 
@@ -283,19 +243,23 @@ RingCentral SDK &copy; 2015-2016 by John Wang
283
243
  [gem-version-link]: http://badge.fury.io/rb/ringcentral_sdk
284
244
  [downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/ringcentral_sdk
285
245
  [downloads-link]: https://rubygems.org/gems/ringcentral_sdk
286
- [build-status-svg]: https://api.travis-ci.org/grokify/ringcentral-sdk-ruby.svg?branch=master
287
- [build-status-link]: https://travis-ci.org/grokify/ringcentral-sdk-ruby
246
+ [build-status-svg]: https://api.travis-ci.org/ringcentral-ruby/ringcentral-sdk-ruby.svg?branch=master
247
+ [build-status-link]: https://travis-ci.org/ringcentral-ruby/ringcentral-sdk-ruby
288
248
  [coverage-status-svg]: https://coveralls.io/repos/grokify/ringcentral-sdk-ruby/badge.svg?branch=master
289
249
  [coverage-status-link]: https://coveralls.io/r/grokify/ringcentral-sdk-ruby?branch=master
290
250
  [dependency-status-svg]: https://gemnasium.com/grokify/ringcentral-sdk-ruby.svg
291
251
  [dependency-status-link]: https://gemnasium.com/grokify/ringcentral-sdk-ruby
252
+ [codacy-svg]: https://api.codacy.com/project/badge/Grade/4792fe45b56b4841a7e6099c316ac0f8
253
+ [codacy-link]: https://www.codacy.com/app/ringcentral-ruby/ringcentral-sdk-ruby
292
254
  [codeclimate-status-svg]: https://codeclimate.com/github/grokify/ringcentral-sdk-ruby/badges/gpa.svg
293
255
  [codeclimate-status-link]: https://codeclimate.com/github/grokify/ringcentral-sdk-ruby
294
256
  [scrutinizer-status-svg]: https://scrutinizer-ci.com/g/grokify/ringcentral-sdk-ruby/badges/quality-score.png?b=master
295
257
  [scrutinizer-status-link]: https://scrutinizer-ci.com/g/grokify/ringcentral-sdk-ruby/?branch=master
258
+ [story-status-svg]: https://badge.waffle.io/ringcentral-ruby/ringcentral-sdk-ruby.svg?label=ready&title=Ready
259
+ [story-status-link]: https://waffle.io/ringcentral-ruby/ringcentral-sdk-ruby
296
260
  [docs-readthedocs-svg]: https://img.shields.io/badge/docs-readthedocs-blue.svg
297
261
  [docs-readthedocs-link]: http://ringcentral-sdk-ruby.readthedocs.org/
298
262
  [docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
299
263
  [docs-rubydoc-link]: http://www.rubydoc.info/gems/ringcentral_sdk/
300
264
  [license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
301
- [license-link]: https://github.com/grokify/ringcentral-sdk-ruby/blob/master/LICENSE.txt
265
+ [license-link]: https://github.com/grokify/ringcentral-sdk-ruby/blob/master/LICENSE.md
@@ -1,8 +1,9 @@
1
+ # RingCentralSdk is a SDK for the RingCentral REST API
1
2
  module RingCentralSdk
2
- VERSION = '1.3.4'
3
+ VERSION = '2.0.0'.freeze
3
4
 
4
- RC_SERVER_PRODUCTION = 'https://platform.ringcentral.com'
5
- RC_SERVER_SANDBOX = 'https://platform.devtest.ringcentral.com'
5
+ RC_SERVER_PRODUCTION = 'https://platform.ringcentral.com'.freeze
6
+ RC_SERVER_SANDBOX = 'https://platform.devtest.ringcentral.com'.freeze
6
7
 
7
8
  autoload :REST, 'ringcentral_sdk/rest'
8
9
 
@@ -1,18 +1,19 @@
1
- module RingCentralSdk::REST
2
- autoload :Cache, 'ringcentral_sdk/rest/cache'
3
- autoload :Client, 'ringcentral_sdk/rest/client'
4
- autoload :Config, 'ringcentral_sdk/rest/config'
5
- autoload :ConfigApp, 'ringcentral_sdk/rest/config'
6
- autoload :ConfigUser, 'ringcentral_sdk/rest/config'
7
- autoload :ConfigEnvRc, 'ringcentral_sdk/rest/config'
8
- autoload :Event, 'ringcentral_sdk/rest/event'
9
- autoload :Extension, 'ringcentral_sdk/rest/extension'
10
- autoload :ExtensionPresence, 'ringcentral_sdk/rest/extension_presence'
11
- autoload :Messages, 'ringcentral_sdk/rest/messages'
12
- autoload :MessagesFax, 'ringcentral_sdk/rest/messages'
13
- autoload :MessagesSMS, 'ringcentral_sdk/rest/messages'
14
- autoload :MessagesRetriever, 'ringcentral_sdk/rest/messages_retriever'
15
- autoload :Request, 'ringcentral_sdk/rest/request'
16
- autoload :SimpleClient, 'ringcentral_sdk/rest/simple_client'
17
- autoload :Subscription, 'ringcentral_sdk/rest/subscription'
1
+ module RingCentralSdk
2
+ # REST is the namespace for the RingCentral REST API class in the
3
+ # RingCentral Ruby SDK
4
+ module REST
5
+ autoload :Cache, 'ringcentral_sdk/rest/cache'
6
+ autoload :Client, 'ringcentral_sdk/rest/client'
7
+ autoload :Configuration, 'ringcentral_sdk/rest/configuration'
8
+ autoload :Event, 'ringcentral_sdk/rest/event'
9
+ autoload :Extension, 'ringcentral_sdk/rest/extension'
10
+ autoload :ExtensionPresence, 'ringcentral_sdk/rest/extension_presence'
11
+ autoload :Messages, 'ringcentral_sdk/rest/messages'
12
+ autoload :MessagesFax, 'ringcentral_sdk/rest/messages'
13
+ autoload :MessagesSMS, 'ringcentral_sdk/rest/messages'
14
+ autoload :MessagesRetriever, 'ringcentral_sdk/rest/messages_retriever'
15
+ autoload :Request, 'ringcentral_sdk/rest/request'
16
+ autoload :SimpleClient, 'ringcentral_sdk/rest/simple_client'
17
+ autoload :Subscription, 'ringcentral_sdk/rest/subscription'
18
+ end
18
19
  end
@@ -1,3 +1,9 @@
1
- module RingCentralSdk::REST::Cache
2
- autoload :Extensions, 'ringcentral_sdk/rest/cache/extensions'
3
- end
1
+ module RingCentralSdk
2
+ module REST
3
+ # Cache is the namespace module for various cache classes such as
4
+ # the Extensions cache class.
5
+ module Cache
6
+ autoload :Extensions, 'ringcentral_sdk/rest/cache/extensions'
7
+ end
8
+ end
9
+ end