Class: OmniAuth::Strategies::Flickr
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::Flickr
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/generators/gunnertechnology/project/templates/config/initializers/omniauth.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.
26 27 28 29 30 31 |
# File 'lib/generators/gunnertechnology/project/templates/config/initializers/omniauth.rb', line 26 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.
11 12 13 |
# File 'lib/generators/gunnertechnology/project/templates/config/initializers/omniauth.rb', line 11 def api_key @api_key end |
#options ⇒ Object
Returns the value of attribute options.
11 12 13 |
# File 'lib/generators/gunnertechnology/project/templates/config/initializers/omniauth.rb', line 11 def @options end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
11 12 13 |
# File 'lib/generators/gunnertechnology/project/templates/config/initializers/omniauth.rb', line 11 def secret_key @secret_key end |