Class: ARI::Response
- Inherits:
-
Object
- Object
- ARI::Response
- Defined in:
- lib/ari/response.rb
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
Response body.
-
#headers ⇒ String
readonly
Response headers.
-
#status ⇒ Integer
readonly
Http status.
Instance Method Summary collapse
-
#initialize(status, body, headers) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status, body, headers) ⇒ Response
Returns a new instance of Response.
10 11 12 13 14 |
# File 'lib/ari/response.rb', line 10 def initialize(status, body, headers) @status = status @body = body @headers = headers end |
Instance Attribute Details
#body ⇒ String (readonly)
Returns response body.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ari/response.rb', line 8 class Response def initialize(status, body, headers) @status = status @body = body @headers = headers end attr_reader :status, :body, :headers end |
#headers ⇒ String (readonly)
Returns response headers.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ari/response.rb', line 8 class Response def initialize(status, body, headers) @status = status @body = body @headers = headers end attr_reader :status, :body, :headers end |
#status ⇒ Integer (readonly)
Returns http status.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/ari/response.rb', line 8 class Response def initialize(status, body, headers) @status = status @body = body @headers = headers end attr_reader :status, :body, :headers end |