Class: CleanArchitecture::Checks::Authorization
- Inherits:
-
Object
- Object
- CleanArchitecture::Checks::Authorization
- Extended by:
- Forwardable
- Defined in:
- lib/clean_architecture/checks/authorization.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/clean_architecture/checks/authorization.rb', line 12 def result if Dry::Monads::Success(true) else failure_details = Entities::FailureDetails.new( message: , other_properties: {}, type: 'unauthorized' ) Dry::Monads::Failure(failure_details) end end |