Class: OmniAuth::Strategies::Flickr
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::Flickr
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/flickr.rb
Overview
Authenticate to Flickr
Defined Under Namespace
Classes: CallbackError
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#options ⇒ Object
Returns the value of attribute options.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize(app, api_key, secret_key, options = {}) ⇒ Flickr
constructor
A new instance of Flickr.
Constructor Details
#initialize(app, api_key, secret_key, options = {}) ⇒ Flickr
Returns a new instance of Flickr.
31 32 33 34 35 36 |
# File 'lib/omniauth/strategies/flickr.rb', line 31 def initialize(app, api_key, secret_key, = {}) super(app, :flickr) @api_key = api_key @secret_key = secret_key @options = {:scope => 'read'}.merge() end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
16 17 18 |
# File 'lib/omniauth/strategies/flickr.rb', line 16 def api_key @api_key end |
#options ⇒ Object
Returns the value of attribute options.
16 17 18 |
# File 'lib/omniauth/strategies/flickr.rb', line 16 def @options end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
16 17 18 |
# File 'lib/omniauth/strategies/flickr.rb', line 16 def secret_key @secret_key end |