| Conditions | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | require 'dotenv' |
||
| 51 | |||
| 52 | def initialize(app_key='', app_secret='', server_url=RingCentralSdk::RC_SERVER_SANDBOX, opts={}) |
||
| 53 | @key = app_key |
||
| 54 | @secret = app_secret |
||
| 55 | @server_url = server_url |
||
| 56 | if opts.key?(:redirect_url) |
||
| 57 | @redirect_url = opts[:redirect_url] |
||
| 58 | elsif opts.key?(:redirect_uri) |
||
| 59 | @redirect_url = opts[:redirect_uri] |
||
| 60 | else |
||
| 61 | @redirect_url = '' |
||
| 62 | end |
||
| 63 | end |
||
| 103 |