class SlowServer::ServerConfig
Attributes
response_body[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
SlowServer::Config::new
# File lib/slow_server/config.rb, line 35 def initialize super self.response_body = File.read(File.expand_path("../../../files/response.txt", __FILE__)) end
Public Instance Methods
parse()
click to toggle source
# File lib/slow_server/config.rb, line 40 def parse response = args.join(" ") self.response_body = response unless response.empty? end