Class: Flickr::OAuth::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr/oauth.rb

Direct Known Subclasses

AccessToken, RequestToken

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, secret) ⇒ Token

Returns a new instance of Token.

Parameters:

  • key (String)
  • secret (String)


61
62
63
# File 'lib/flickr/oauth.rb', line 61

def initialize(key, secret)
  @key, @secret = key, secret
end

Instance Attribute Details

#keyObject (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

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



65
66
67
# File 'lib/flickr/oauth.rb', line 65

def to_a
  [key, secret]
end