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.



263
264
265
266
267
# File 'lib/rage/configuration.rb', line 263

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.



260
261
262
# File 'lib/rage/configuration.rb', line 260

def max_clients
  @max_clients
end

#portObject

Returns the value of attribute port.



260
261
262
# File 'lib/rage/configuration.rb', line 260

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



261
262
263
# File 'lib/rage/configuration.rb', line 261

def threads_count
  @threads_count
end

#timeoutObject

Returns the value of attribute timeout.



260
261
262
# File 'lib/rage/configuration.rb', line 260

def timeout
  @timeout
end

#workers_countObject

Returns the value of attribute workers_count.



260
261
262
# File 'lib/rage/configuration.rb', line 260

def workers_count
  @workers_count
end