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.14 lib/oauth/tokens/token.rb
oauth-0.5.13 lib/oauth/tokens/token.rb
oauth-0.5.12 lib/oauth/tokens/token.rb
oauth-0.5.11 lib/oauth/tokens/token.rb
oauth-0.5.10 lib/oauth/tokens/token.rb
oauth-0.5.9 lib/oauth/tokens/token.rb
oauth-0.5.8 lib/oauth/tokens/token.rb
oauth-0.5.7 lib/oauth/tokens/token.rb
oauth-0.5.7.pre.pre1 lib/oauth/tokens/token.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/oauth-0.5.6/lib/oauth/tokens/token.rb
oauth-0.5.6 lib/oauth/tokens/token.rb
oauth-0.5.5 lib/oauth/tokens/token.rb
tdiary-5.0.8 vendor/bundle/gems/oauth-0.5.4/lib/oauth/tokens/token.rb
oauth-0.5.4 lib/oauth/tokens/token.rb
tdiary-5.0.5 vendor/bundle/gems/oauth-0.5.3/lib/oauth/tokens/token.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/oauth-0.5.1/lib/oauth/tokens/token.rb
tdiary-5.0.5 vendor/bundle/gems/oauth-0.5.1/lib/oauth/tokens/token.rb
oauth-0.5.3 lib/oauth/tokens/token.rb
oauth-0.5.2 lib/oauth/tokens/token.rb
tdiary-5.0.4 vendor/bundle/gems/oauth-0.5.1/lib/oauth/tokens/token.rb