Class: Sliver::Response

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



6
7
8
# File 'lib/sliver/response.rb', line 6

def initialize
  @headers = {}
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



4
5
6
# File 'lib/sliver/response.rb', line 4

def body
  @body
end

#headersObject

Returns the value of attribute headers.



4
5
6
# File 'lib/sliver/response.rb', line 4

def headers
  @headers
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/sliver/response.rb', line 4

def status
  @status
end

Instance Method Details

#to_aObject



10
11
12
# File 'lib/sliver/response.rb', line 10

def to_a
  [status, headers, body]
end