Module: Flickrie::OAuth::Token

Included in:
AccessToken, RequestToken
Defined in:
lib/flickrie/oauth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#secretObject (readonly)

Returns the value of attribute secret.



57
58
59
# File 'lib/flickrie/oauth.rb', line 57

def secret
  @secret
end

#tokenObject (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_aObject



64
65
66
# File 'lib/flickrie/oauth.rb', line 64

def to_a
  [token, secret]
end