class RabbitMQHttpAuthBackend::BasicResolver

Attributes

params[R]

Public Class Methods

new(params) click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 5
def initialize(params)
  @params = params
end

Private Instance Methods

configure?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 51
def configure?
  permission == 'configure'
end
exchange?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 31
def exchange?
  resource == 'exchange'
end
ip() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 67
def ip
  params['ip']
end
name() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 23
def name
  params['name']
end
password() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 19
def password
  params['password']
end
permission() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 55
def permission
  params['permission']
end
queue?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 27
def queue?
  resource == 'queue'
end
read?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 43
def read?
  permission == 'read'
end
resource() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 39
def resource
  params['resource']
end
routing_key() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 59
def routing_key
  params['routing_key']
end
topic?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 35
def topic?
  resource == 'topic'
end
username() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 15
def username
  params['username']
end
vhost() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 63
def vhost
  params['vhost']
end
write?() click to toggle source
# File lib/rabbitmq_http_auth_backend/basic_resolver.rb, line 47
def write?
  permission == 'write'
end