Class OAuth::Token
In: lib/oauth/tokens/token.rb
Parent: Object

Superclass for the various tokens used by OAuth

Methods

new   to_query  

Included Modules

OAuth::Helper

Attributes

secret  [RW] 
token  [RW] 

Public Class methods

[Source]

# File lib/oauth/tokens/token.rb, line 8
    def initialize(token, secret)
      @token = token
      @secret = secret
    end

Public Instance methods

[Source]

# File lib/oauth/tokens/token.rb, line 13
    def to_query
      "oauth_token=#{escape(token)}&oauth_secret=#{escape(secret)}"
    end

[Validate]