Class: Flickr::OAuth::Token
- Inherits:
-
Object
- Object
- Flickr::OAuth::Token
- Defined in:
- lib/flickr/oauth.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
(also: #token)
readonly
Returns the value of attribute key.
-
#secret ⇒ Object
readonly
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize(key, secret) ⇒ Token
constructor
A new instance of Token.
- #to_a ⇒ Object
Constructor Details
#initialize(key, secret) ⇒ Token
Returns a new instance of Token.
61 62 63 |
# File 'lib/flickr/oauth.rb', line 61 def initialize(key, secret) @key, @secret = key, secret end |
Instance Attribute Details
#key ⇒ Object (readonly) Also known as: token
Returns the value of attribute key.
54 55 56 |
# File 'lib/flickr/oauth.rb', line 54 def key @key end |
#secret ⇒ Object (readonly)
Returns the value of attribute secret.
54 55 56 |
# File 'lib/flickr/oauth.rb', line 54 def secret @secret end |
Instance Method Details
#to_a ⇒ Object
65 66 67 |
# File 'lib/flickr/oauth.rb', line 65 def to_a [key, secret] end |