Class: SolidusBolt::Oauth::TokenService
- Inherits:
-
BaseService
- Object
- BaseService
- SolidusBolt::Oauth::TokenService
- Defined in:
- app/services/solidus_bolt/oauth/token_service.rb
Instance Attribute Summary collapse
-
#authorization_code ⇒ Object
readonly
Returns the value of attribute authorization_code.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(authorization_code:, scope:) ⇒ TokenService
constructor
A new instance of TokenService.
Methods inherited from BaseService
Constructor Details
#initialize(authorization_code:, scope:) ⇒ TokenService
Returns a new instance of TokenService.
8 9 10 11 12 |
# File 'app/services/solidus_bolt/oauth/token_service.rb', line 8 def initialize(authorization_code:, scope:) @authorization_code = @scope = scope super end |
Instance Attribute Details
#authorization_code ⇒ Object (readonly)
Returns the value of attribute authorization_code.
6 7 8 |
# File 'app/services/solidus_bolt/oauth/token_service.rb', line 6 def @authorization_code end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'app/services/solidus_bolt/oauth/token_service.rb', line 6 def scope @scope end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'app/services/solidus_bolt/oauth/token_service.rb', line 14 def call token end |