Class: OmniAuth::Strategies::Yupoo

Inherits:
Object
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/yupoo.rb

Defined Under Namespace

Classes: CallbackError

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  super(app, :yupoo)
  @api_key = api_key
  @secret_key = secret_key
  @options = {:scope => 'read'}.merge(options)
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



10
11
12
# File 'lib/omniauth/strategies/yupoo.rb', line 10

def api_key
  @api_key
end

#optionsObject

Returns the value of attribute options.



10
11
12
# File 'lib/omniauth/strategies/yupoo.rb', line 10

def options
  @options
end

#secret_keyObject

Returns the value of attribute secret_key.



10
11
12
# File 'lib/omniauth/strategies/yupoo.rb', line 10

def secret_key
  @secret_key
end