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 Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, secret) ⇒ OAuthToken

Returns a new instance of OAuthToken.



687
688
689
690
# File 'lib/dropbox_sdk.rb', line 687

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

Instance Attribute Details

#keyObject (readonly)

:nodoc:



686
687
688
# File 'lib/dropbox_sdk.rb', line 686

def key
  @key
end

#secretObject (readonly)

:nodoc:



686
687
688
# File 'lib/dropbox_sdk.rb', line 686

def secret
  @secret
end