Class: ARI::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/ari/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyString (readonly)

Returns response body.

Returns:

  • (String)

    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

#headersString (readonly)

Returns response headers.

Returns:

  • (String)

    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

#statusInteger (readonly)

Returns http status.

Returns:

  • (Integer)

    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