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.



149
150
151
152
153
# File 'lib/rage/configuration.rb', line 149

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.



146
147
148
# File 'lib/rage/configuration.rb', line 146

def max_clients
  @max_clients
end

#portObject

Returns the value of attribute port.



146
147
148
# File 'lib/rage/configuration.rb', line 146

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



147
148
149
# File 'lib/rage/configuration.rb', line 147

def threads_count
  @threads_count
end

#timeoutObject

Returns the value of attribute timeout.



146
147
148
# File 'lib/rage/configuration.rb', line 146

def timeout
  @timeout
end

#workers_countObject

Returns the value of attribute workers_count.



146
147
148
# File 'lib/rage/configuration.rb', line 146

def workers_count
  @workers_count
end