Class: Makanai::Response
- Inherits:
-
Rack::Response
- Object
- Rack::Response
- Makanai::Response
- Defined in:
- lib/makanai/response.rb
Instance Attribute Summary collapse
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
- #result ⇒ Object
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
7 8 9 10 |
# File 'lib/makanai/response.rb', line 7 def initialize super @header = { 'Content-Type' => 'text/html' } end |
Instance Attribute Details
#header ⇒ Object
Returns the value of attribute header.
12 13 14 |
# File 'lib/makanai/response.rb', line 12 def header @header end |
Instance Method Details
#result ⇒ Object
14 15 16 |
# File 'lib/makanai/response.rb', line 14 def result [status, header, body.map(&:to_s)] end |