Class: SolidusBolt::Oauth::TokenService

Inherits:
BaseService show all
Defined in:
app/services/solidus_bolt/oauth/token_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

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 = authorization_code
  @scope = scope
  super
end

Instance Attribute Details

#authorization_codeObject (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
  @authorization_code
end

#scopeObject (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

#callObject



14
15
16
# File 'app/services/solidus_bolt/oauth/token_service.rb', line 14

def call
  token
end