Class: Makanai::Response

Inherits:
Rack::Response
  • Object
show all
Defined in:
lib/makanai/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

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

#headerObject

Returns the value of attribute header.



12
13
14
# File 'lib/makanai/response.rb', line 12

def header
  @header
end

Instance Method Details

#resultObject



14
15
16
# File 'lib/makanai/response.rb', line 14

def result
  [status, header, body.map(&:to_s)]
end