Class: RabbitMQHttpAuthBackend::Resolver
- Defined in:
- lib/rabbitmq_http_auth_backend/resolver.rb,
lib/rabbitmq_http_auth_backend/resolver/runtime.rb
Defined Under Namespace
Classes: Error, InvalidResponseError, NoResolverError, NonCallableResolverError, Runtime
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#resolver ⇒ Object
readonly
Returns the value of attribute resolver.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(params, resolver) ⇒ Resolver
constructor
A new instance of Resolver.
Methods inherited from Service
Constructor Details
#initialize(params, resolver) ⇒ Resolver
Returns a new instance of Resolver.
13 14 15 16 |
# File 'lib/rabbitmq_http_auth_backend/resolver.rb', line 13 def initialize(params, resolver) @params = params @resolver = resolver || raise(NoResolverError) end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
10 11 12 |
# File 'lib/rabbitmq_http_auth_backend/resolver.rb', line 10 def params @params end |
#resolver ⇒ Object (readonly)
Returns the value of attribute resolver.
11 12 13 |
# File 'lib/rabbitmq_http_auth_backend/resolver.rb', line 11 def resolver @resolver end |
Instance Method Details
#call ⇒ Object
18 19 20 21 22 |
# File 'lib/rabbitmq_http_auth_backend/resolver.rb', line 18 def call response = generate_response! validate_response!(response) response end |