Class: DropboxOAuth2Session
- Inherits:
-
DropboxSessionBase
- Object
- DropboxSessionBase
- DropboxOAuth2Session
- Defined in:
- lib/dropbox_sdk_v2.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.
402 403 404 405 406 407 408 |
# File 'lib/dropbox_sdk_v2.rb', line 402 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
410 411 412 |
# File 'lib/dropbox_sdk_v2.rb', line 410 def true end |