class RabbitMQHttpAuthBackend::Resolver::Runtime
Attributes
_allowed[RW]
Public Class Methods
new(params)
click to toggle source
Calls superclass method
RabbitMQHttpAuthBackend::BasicResolver::new
# File lib/rabbitmq_http_auth_backend/resolver/runtime.rb, line 9 def initialize(params) super(params) self.tags = nil self._allowed = false end
Public Instance Methods
allow!(tags = nil)
click to toggle source
# File lib/rabbitmq_http_auth_backend/resolver/runtime.rb, line 15 def allow!(tags = nil) self._allowed = true self.tags = tags end
allowed?()
click to toggle source
# File lib/rabbitmq_http_auth_backend/resolver/runtime.rb, line 25 def allowed? _allowed == true end
denied?()
click to toggle source
# File lib/rabbitmq_http_auth_backend/resolver/runtime.rb, line 29 def denied? !allowed? end
deny!()
click to toggle source
# File lib/rabbitmq_http_auth_backend/resolver/runtime.rb, line 20 def deny! self._allowed = false self.tags = nil end