Class: DropboxOAuth2Session
- Inherits:
-
DropboxSessionBase
- Object
- DropboxSessionBase
- DropboxOAuth2Session
- Defined in:
- lib/dropbox_sdk.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from DropboxSessionBase
Instance Method Summary collapse
- #assert_authorized ⇒ Object
-
#initialize(oauth2_access_token, locale = nil) ⇒ DropboxOAuth2Session
constructor
A new instance of DropboxOAuth2Session.
Methods inherited from DropboxSessionBase
#do_get, #do_http_with_body, #do_post, #do_put
Constructor Details
#initialize(oauth2_access_token, locale = nil) ⇒ DropboxOAuth2Session
Returns a new instance of DropboxOAuth2Session.
400 401 402 403 404 405 406 |
# File 'lib/dropbox_sdk.rb', line 400 def initialize(oauth2_access_token, locale=nil) super(locale) if not oauth2_access_token.is_a?(String) raise "bad type for oauth2_access_token (expecting String)" end @access_token = oauth2_access_token end |
Instance Method Details
#assert_authorized ⇒ Object
408 409 410 |
# File 'lib/dropbox_sdk.rb', line 408 def true end |