Class: OAuthToken

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox_sdk_v2.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.



688
689
690
691
# File 'lib/dropbox_sdk_v2.rb', line 688

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

Instance Attribute Details

#keyObject (readonly)

:nodoc:



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

def key
  @key
end

#secretObject (readonly)

:nodoc:



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

def secret
  @secret
end