class Vines::Config::ClientPort
Public Class Methods
new(config, host='0.0.0.0', port=5222, &block)
click to toggle source
Calls superclass method
Vines::Config::Port::new
# 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
Public Instance Methods
max_resources_per_account(max=nil)
click to toggle source
# 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()
click to toggle source
Calls superclass method
Vines::Config::Port#start
# File lib/vines/config/port.rb, line 54 def start super config.cluster.start if config.cluster? end