Class: Queight::RabbitMQConfig

Inherits:
URIConfig::Config
  • Object
show all
Defined in:
lib/queight/rabbitmq_config.rb

Instance Method Summary collapse

Instance Method Details

#sizeObject



8
9
10
# File 'lib/queight/rabbitmq_config.rb', line 8

def size
  query["size"].map(&:to_i).last
end

#vhostObject



12
13
14
15
16
# File 'lib/queight/rabbitmq_config.rb', line 12

def vhost
  return "/" if path.empty?

  URI.decode path[1..-1]
end