Class: Jobshop::AuthorizationService
- Inherits:
-
Object
- Object
- Jobshop::AuthorizationService
- Defined in:
- app/services/jobshop/authorization_service.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(headers = {}) ⇒ AuthorizationService
constructor
A new instance of AuthorizationService.
- #perform ⇒ Object
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
#headers ⇒ Object (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
#perform ⇒ Object
9 10 11 |
# File 'app/services/jobshop/authorization_service.rb', line 9 def perform { user: user } end |