Class: MQBench::Client
- Inherits:
-
Object
- Object
- MQBench::Client
- Defined in:
- lib/mqbench/client.rb
Constant Summary collapse
- QNAME =
"benchmark9-#{(rand * 10000).to_i}"
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(args = {}) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 10 11 12 |
# File 'lib/mqbench/client.rb', line 5 def initialize(args = {}) @size = args[:size] if args.key? :size @host = args[:host] if args.key? :host @port = args[:port] if args.key? :port @user = args[:user] if args.key? :user @pass = args[:pass] if args.key? :pass @count = args[:count] if args.key? :count end |