Class: Rasti::Web::ApiDoc::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/rasti/web/api_doc/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject (readonly)

Returns the value of attribute headers.



6
7
8
# File 'lib/rasti/web/api_doc/response.rb', line 6

def headers
  @headers
end

#statusObject (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

#bodyObject



14
15
16
# File 'lib/rasti/web/api_doc/response.rb', line 14

def body
  @body_proxy.body
end