Class: Rage::Configuration::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeServer

Returns a new instance of Server.



190
191
192
193
194
# File 'lib/rage/configuration.rb', line 190

def initialize
  @threads_count = 1
  @workers_count = Rage.env.development? ? 1 : -1
  @port = 3000
end

Instance Attribute Details

#max_clientsObject

Returns the value of attribute max_clients.



187
188
189
# File 'lib/rage/configuration.rb', line 187

def max_clients
  @max_clients
end

#portObject

Returns the value of attribute port.



187
188
189
# File 'lib/rage/configuration.rb', line 187

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



188
189
190
# File 'lib/rage/configuration.rb', line 188

def threads_count
  @threads_count
end

#timeoutObject

Returns the value of attribute timeout.



187
188
189
# File 'lib/rage/configuration.rb', line 187

def timeout
  @timeout
end

#workers_countObject

Returns the value of attribute workers_count.



187
188
189
# File 'lib/rage/configuration.rb', line 187

def workers_count
  @workers_count
end