class Google::Cloud::Env::ComputeMetadata::Response
the data was retrieved.
‘Faraday::Response`. It also includes the CLOCK_MONOTONIC time when
This object duck-types the `status`, `body`, and `headers` fields of
{ComputeMetadata#lookup_response}.
Basic HTTP response object, returned by
#
def google_flavor?
-
(boolean)-
def google_flavor? headers["Metadata-Flavor"] == "Google" end
def initialize status, body, headers
-
headers(Hash{String=>String}) -- The HTTP response headers. -
body(String) -- The HTTP body as a string -
status(Integer) -- The HTTP status, normally 200
def initialize status, body, headers @status = status @body = body @headers = headers @retrieval_monotonic_time = Process.clock_gettime Process::CLOCK_MONOTONIC end