Class: OAuthToken

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox_sdk.rb

Overview

A class that represents either an OAuth request token or an OAuth access token.

Instance Method Summary collapse

Constructor Details

#initialize(key, secret) ⇒ OAuthToken

Returns a new instance of OAuthToken.



231
232
233
234
# File 'lib/dropbox_sdk.rb', line 231

def initialize(key, secret)
    @key = key
    @secret = secret
end

Instance Method Details

#keyObject



236
237
238
# File 'lib/dropbox_sdk.rb', line 236

def key
    @key
end

#secretObject



240
241
242
# File 'lib/dropbox_sdk.rb', line 240

def secret
    @secret
end