class Orchestrate::API::Response::Header
Provides methods for ready access to relevant information extracted from the HTTParty response headers.
Attributes
code[R]
HTTP response code.
content[R]
Original response headers from HTTParty.
etag[R]
ETag value, also known as the 'ref' value.
link[R]
Link to the next url in a series of list requests.
status[R]
HTTP response status.
timestamp[R]
Public Class Methods
new(headers, code, msg)
click to toggle source
# File api/lib/orchestrate_api/response.rb, line 49 def initialize(headers, code, msg) @content = headers @code, @status = code, msg @timestamp = headers['date'] @etag = headers['etag'] if headers['etag'] @link = headers['link'] if headers['link'] end