Sha256: 119473df877fdb78e772badb6b9b03830728522069a3c76ca8d7bd2b35b6c3b3

Contents?: true

Size: 337 Bytes

Versions: 22

Compression:

Stored size: 337 Bytes

Contents

module OAuth
  # Superclass for the various tokens used by OAuth
  class Token
    include OAuth::Helper

    attr_accessor :token, :secret

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

    def to_query
      "oauth_token=#{escape(token)}&oauth_token_secret=#{escape(secret)}"
    end
  end
end

Version data entries

22 entries across 20 versions & 2 rubygems

Version Path
oauth-0.5.1 lib/oauth/tokens/token.rb
oauth-0.5.0 lib/oauth/tokens/token.rb