Class: Vines::Config::ClientPort
- Inherits:
-
Port
- Object
- Port
- Vines::Config::ClientPort
show all
- Defined in:
- lib/vines/config/port.rb
Instance Attribute Summary
Attributes inherited from Port
#config, #settings, #stream
Instance Method Summary
collapse
Methods inherited from Port
#max_stanza_size
Methods included from Log
#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
|