Sha256: acad9580b0902e109b04f84557aed7b78cfb7c8b093fc6689e78e28342c14f5a

Contents?: true

Size: 331 Bytes

Versions: 54

Compression:

Stored size: 331 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_secret=#{escape(secret)}"
    end
  end
end

Version data entries

54 entries across 53 versions & 24 rubygems

Version Path
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/oauth-0.4.7/lib/oauth/tokens/token.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/oauth-0.4.7/lib/oauth/tokens/token.rb
oauth-ap-0.4.8 lib/oauth/tokens/token.rb
greut-oauth-0.3.6 lib/oauth/tokens/token.rb
jwhitmire-oauth-0.3.6.1 lib/oauth/tokens/token.rb
metavida-oauth-0.3.2.1 lib/oauth/tokens/token.rb
metavida-oauth-0.3.2 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.1.6 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.1.7 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.1.8 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.2.1 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.2.2 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.2 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.3 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.4.1 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.4 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.5 lib/oauth/tokens/token.rb
mojodna-oauth-0.3.6 lib/oauth/tokens/token.rb
monkeyhelper-oauth-0.3.5 lib/oauth/tokens/token.rb
mzsanford-oauth-0.3.2.2 lib/oauth/tokens/token.rb