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.



248
249
250
251
# File 'lib/dropbox_sdk.rb', line 248

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

Instance Method Details

#keyObject



253
254
255
# File 'lib/dropbox_sdk.rb', line 253

def key
    @key
end

#secretObject



257
258
259
# File 'lib/dropbox_sdk.rb', line 257

def secret
    @secret
end