class Kuva::Authorizer
Attributes
out[R]
Public Class Methods
new()
click to toggle source
# File lib/kuva/authorizer.rb, line 10 def initialize FlickRaw.api_key = Kuva.api_key FlickRaw.shared_secret = Kuva.shared_secret end
Public Instance Methods
Private Instance Methods
authentication_url()
click to toggle source
# File lib/kuva/authorizer.rb, line 33 def authentication_url flickr.get_authorize_url oauth_token, perms: "read" end
oauth_token()
click to toggle source
# File lib/kuva/authorizer.rb, line 37 def oauth_token token["oauth_token"] end
oauth_token_secret()
click to toggle source
# File lib/kuva/authorizer.rb, line 41 def oauth_token_secret token["oauth_token_secret"] end
token()
click to toggle source
# File lib/kuva/authorizer.rb, line 45 def token @token ||= flickr.get_request_token end