Class: OmniAuth::Strategies::Yupoo
- Inherits:
-
Object
- Object
- OmniAuth::Strategies::Yupoo
- Includes:
- OmniAuth::Strategy
- Defined in:
- lib/omniauth/strategies/yupoo.rb
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 = {}) ⇒ Yupoo
constructor
A new instance of Yupoo.
Constructor Details
#initialize(app, api_key, secret_key, options = {}) ⇒ Yupoo
Returns a new instance of Yupoo.
21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/yupoo.rb', line 21 def initialize(app, api_key, secret_key, = {}) super(app, :yupoo) @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.
10 11 12 |
# File 'lib/omniauth/strategies/yupoo.rb', line 10 def api_key @api_key end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/omniauth/strategies/yupoo.rb', line 10 def @options end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
10 11 12 |
# File 'lib/omniauth/strategies/yupoo.rb', line 10 def secret_key @secret_key end |