Class: RoadForest::HTTP::Response

Inherits:
Message
  • Object
show all
Defined in:
lib/roadforest/http/message.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#headers

Instance Method Summary collapse

Methods inherited from Message

#body, #body=, #body_string, #body_string=, #empty?, #initialize, #inspect, #inspection_stream

Constructor Details

This class inherits a constructor from RoadForest::HTTP::Message

Instance Attribute Details

#statusObject

Returns the value of attribute status.



97
98
99
# File 'lib/roadforest/http/message.rb', line 97

def status
  @status
end

Instance Method Details

#etagObject



99
100
101
# File 'lib/roadforest/http/message.rb', line 99

def etag
  headers["ETag"]
end

#inspection_payloadObject



103
104
105
# File 'lib/roadforest/http/message.rb', line 103

def inspection_payload
  [status] + super
end