Class: SidekiqAlive::Server::HttpServer::Response
- Inherits:
-
Object
- Object
- SidekiqAlive::Server::HttpServer::Response
- Defined in:
- lib/sidekiq_alive/server/http_server.rb
Overview
Response class for HTTP server
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#status ⇒ Object
Returns the value of attribute status.
-
#status_message ⇒ Object
Returns the value of attribute status_message.
Instance Method Summary collapse
-
#initialize(status = 200) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status = 200) ⇒ Response
Returns a new instance of Response.
37 38 39 40 41 |
# File 'lib/sidekiq_alive/server/http_server.rb', line 37 def initialize(status = 200) @status = status @status_message = nil @header = {} end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
35 36 37 |
# File 'lib/sidekiq_alive/server/http_server.rb', line 35 def body @body end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
34 35 36 |
# File 'lib/sidekiq_alive/server/http_server.rb', line 34 def header @header end |
#status ⇒ Object
Returns the value of attribute status.
35 36 37 |
# File 'lib/sidekiq_alive/server/http_server.rb', line 35 def status @status end |
#status_message ⇒ Object
Returns the value of attribute status_message.
35 36 37 |
# File 'lib/sidekiq_alive/server/http_server.rb', line 35 def @status_message end |