Class: ShopifyCLI::Services::App::Tunnel::AuthService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/shopify_cli/services/app/tunnel/auth_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

Constructor Details

#initialize(token:, context:) ⇒ AuthService

Returns a new instance of AuthService.



8
9
10
11
12
# File 'lib/shopify_cli/services/app/tunnel/auth_service.rb', line 8

def initialize(token:, context:)
  @context = context
  @token = token
  super()
end

Instance Attribute Details

#contextObject

Returns the value of attribute context.



6
7
8
# File 'lib/shopify_cli/services/app/tunnel/auth_service.rb', line 6

def context
  @context
end

#tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/shopify_cli/services/app/tunnel/auth_service.rb', line 6

def token
  @token
end

Instance Method Details

#callObject



14
15
16
# File 'lib/shopify_cli/services/app/tunnel/auth_service.rb', line 14

def call
  ShopifyCLI::Tunnel.auth(context, token)
end