Class: OmniAuth::Strategies::LastFm
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::LastFm
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/last_fm.rb
Overview
Authenticate to LastFM
use OmniAuth::Strategies::LastFm, 'API Key', 'Secret Key'
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 = {}) ⇒ LastFm
constructor
A new instance of LastFm.
Constructor Details
#initialize(app, api_key, secret_key, options = {}) ⇒ LastFm
Returns a new instance of LastFm.
31 32 33 34 35 36 |
# File 'lib/omniauth/strategies/last_fm.rb', line 31 def initialize(app, api_key, secret_key, = {}) super(app, :last_fm) @api_key = api_key @secret_key = secret_key @options = end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
16 17 18 |
# File 'lib/omniauth/strategies/last_fm.rb', line 16 def api_key @api_key end |
#options ⇒ Object
Returns the value of attribute options.
16 17 18 |
# File 'lib/omniauth/strategies/last_fm.rb', line 16 def @options end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
16 17 18 |
# File 'lib/omniauth/strategies/last_fm.rb', line 16 def secret_key @secret_key end |