Module: Flickrie::OAuth::Token
- Included in:
- AccessToken, RequestToken
- Defined in:
- lib/flickrie/oauth.rb
Instance Attribute Summary collapse
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
57 58 59 |
# File 'lib/flickrie/oauth.rb', line 57 def secret @secret end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
57 58 59 |
# File 'lib/flickrie/oauth.rb', line 57 def token @token end |
Instance Method Details
#initialize(info) ⇒ Object
59 60 61 62 |
# File 'lib/flickrie/oauth.rb', line 59 def initialize(info) @token = info[:oauth_token] @secret = info[:oauth_token_secret] end |
#to_a ⇒ Object
64 65 66 |
# File 'lib/flickrie/oauth.rb', line 64 def to_a [token, secret] end |