Class: OAuth::Token
Overview
Superclass for the various tokens used by OAuth
Direct Known Subclasses
Instance Attribute Summary collapse
-
#secret ⇒ Object
Returns the value of attribute secret.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, secret) ⇒ Token
constructor
A new instance of Token.
- #to_query ⇒ Object
Methods included from Helper
Constructor Details
#initialize(token, secret) ⇒ Token
Returns a new instance of Token.
11 12 13 14 |
# File 'lib/oauth/token.rb', line 11 def initialize(token, secret) @token = token @secret = secret end |
Instance Attribute Details
#secret ⇒ Object
Returns the value of attribute secret.
9 10 11 |
# File 'lib/oauth/token.rb', line 9 def secret @secret end |
#token ⇒ Object
Returns the value of attribute token.
9 10 11 |
# File 'lib/oauth/token.rb', line 9 def token @token end |
Instance Method Details
#to_query ⇒ Object
16 17 18 |
# File 'lib/oauth/token.rb', line 16 def to_query "oauth_token=#{escape(token)}&oauth_secret=#{escape(secret)}" end |