Class: Rasti::Web::ApiDoc::Response
- Inherits:
-
Object
- Object
- Rasti::Web::ApiDoc::Response
- Defined in:
- lib/rasti/web/api_doc/response.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(status, headers, body_proxy) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status, headers, body_proxy) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 |
# File 'lib/rasti/web/api_doc/response.rb', line 8 def initialize(status, headers, body_proxy) @status = status @headers = headers @body_proxy = body_proxy end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6 7 8 |
# File 'lib/rasti/web/api_doc/response.rb', line 6 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/rasti/web/api_doc/response.rb', line 6 def status @status end |
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/rasti/web/api_doc/response.rb', line 14 def body @body_proxy.body end |