Class: Omniauth::Social::Service
- Inherits:
-
Object
- Object
- Omniauth::Social::Service
- Defined in:
- lib/omniauth/social/service.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#provider_data ⇒ Object
readonly
Returns the value of attribute provider_data.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(auth, controller) ⇒ Service
constructor
A new instance of Service.
Constructor Details
#initialize(auth, controller) ⇒ Service
Returns a new instance of Service.
5 6 7 8 |
# File 'lib/omniauth/social/service.rb', line 5 def initialize(auth, controller) @provider_data = auth.env['omniauth.auth'] @controller = controller end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
3 4 5 |
# File 'lib/omniauth/social/service.rb', line 3 def controller @controller end |
#provider_data ⇒ Object (readonly)
Returns the value of attribute provider_data.
3 4 5 |
# File 'lib/omniauth/social/service.rb', line 3 def provider_data @provider_data end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/omniauth/social/service.rb', line 10 def execute if yield(PostService::Success, PostService::Failure) else yield(PostService::Failure, PostService::Success) end end |