Class: PactBroker::Diagnostic::Resources::BaseResource
- Inherits:
-
Webmachine::Resource
- Object
- Webmachine::Resource
- PactBroker::Diagnostic::Resources::BaseResource
- Includes:
- Api::Resources::Authentication
- Defined in:
- lib/pact_broker/diagnostic/resources/base_resource.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from Api::Resources::Authentication
Instance Method Details
#forbidden? ⇒ Boolean
15 16 17 18 |
# File 'lib/pact_broker/diagnostic/resources/base_resource.rb', line 15 def forbidden? return false if PactBroker.configuration..nil? !PactBroker.configuration..call(self, {}) end |
#is_authorized?(authorization_header) ⇒ Boolean
11 12 13 |
# File 'lib/pact_broker/diagnostic/resources/base_resource.rb', line 11 def () authenticated?(self, ) end |