Class: Jobshop::AuthorizationService

Inherits:
Object
  • Object
show all
Defined in:
app/services/jobshop/authorization_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers = {}) ⇒ AuthorizationService

Returns a new instance of AuthorizationService.



5
6
7
# File 'app/services/jobshop/authorization_service.rb', line 5

def initialize(headers = {})
  @headers = headers
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



3
4
5
# File 'app/services/jobshop/authorization_service.rb', line 3

def headers
  @headers
end

Instance Method Details

#performObject



9
10
11
# File 'app/services/jobshop/authorization_service.rb', line 9

def perform
  { user: user }
end