Class: Wire::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/wire/client.rb

Overview

Response is the transport-agnostic result an http_adapter must return.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



141
142
143
# File 'lib/wire/client.rb', line 141

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



141
142
143
# File 'lib/wire/client.rb', line 141

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



141
142
143
# File 'lib/wire/client.rb', line 141

def status
  @status
end