Class: Esplanade::Response::Raw
- Inherits:
-
Object
- Object
- Esplanade::Response::Raw
- Defined in:
- lib/esplanade/response/raw.rb,
lib/esplanade/response/raw/body.rb
Defined Under Namespace
Classes: Body
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(request, raw_status, raw_body) ⇒ Raw
constructor
A new instance of Raw.
- #status ⇒ Object
Constructor Details
#initialize(request, raw_status, raw_body) ⇒ Raw
Returns a new instance of Raw.
6 7 8 9 10 |
# File 'lib/esplanade/response/raw.rb', line 6 def initialize(request, raw_status, raw_body) @request = request @raw_status = raw_status @raw_body = raw_body end |
Instance Method Details
#body ⇒ Object
16 17 18 |
# File 'lib/esplanade/response/raw.rb', line 16 def body @body ||= Body.new(@request, self, @raw_body) end |
#status ⇒ Object
12 13 14 |
# File 'lib/esplanade/response/raw.rb', line 12 def status @status ||= @raw_status.to_s end |