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.



205
206
207
208
209
# File 'lib/rage/configuration.rb', line 205

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.



202
203
204
# File 'lib/rage/configuration.rb', line 202

def max_clients
  @max_clients
end

#portObject

Returns the value of attribute port.



202
203
204
# File 'lib/rage/configuration.rb', line 202

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



203
204
205
# File 'lib/rage/configuration.rb', line 203

def threads_count
  @threads_count
end

#timeoutObject

Returns the value of attribute timeout.



202
203
204
# File 'lib/rage/configuration.rb', line 202

def timeout
  @timeout
end

#workers_countObject

Returns the value of attribute workers_count.



202
203
204
# File 'lib/rage/configuration.rb', line 202

def workers_count
  @workers_count
end