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.



208
209
210
211
212
# File 'lib/rage/configuration.rb', line 208

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.



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

def max_clients
  @max_clients
end

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



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

def threads_count
  @threads_count
end

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

#workers_countObject

Returns the value of attribute workers_count.



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

def workers_count
  @workers_count
end