Class: Vines::Config::ClientPort
Instance Attribute Summary
Attributes inherited from Port
Instance Method Summary collapse
-
#initialize(config, host = '0.0.0.0', port = 5222, &block) ⇒ ClientPort
constructor
A new instance of ClientPort.
- #max_resources_per_account(max = nil) ⇒ Object
- #start ⇒ Object
Methods inherited from Port
Methods included from Log
Constructor Details
#initialize(config, host = '0.0.0.0', port = 5222, &block) ⇒ ClientPort
Returns a new instance of ClientPort.
41 42 43 44 |
# File 'lib/vines/config/port.rb', line 41 def initialize(config, host='0.0.0.0', port=5222, &block) @stream = Vines::Stream::Client super(config, host, port, &block) end |
Instance Method Details
#max_resources_per_account(max = nil) ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/vines/config/port.rb', line 46 def max_resources_per_account(max=nil) if max @settings[:max_resources_per_account] = max else @settings[:max_resources_per_account] end end |
#start ⇒ Object
54 55 56 57 |
# File 'lib/vines/config/port.rb', line 54 def start super config.cluster.start if config.cluster? end |