class Vault::Request
Attributes
Public Class Methods
Public Instance Methods
Source
# File lib/vault/request.rb, line 18 def inspect "#<#{self.class.name}:0x#{"%x" % (self.object_id << 1)}>" end
@return [String]
Source
# File lib/vault/request.rb, line 13 def to_s "#<#{self.class.name}>" end
@return [String]
Private Instance Methods
Source
# File lib/vault/request.rb, line 32 def extract_headers!(options = {}) extract = { wrap_ttl: Vault::Client::WRAP_TTL_HEADER, namespace: Vault::Client::NAMESPACE_HEADER, } {}.tap do |h| extract.each do |k,v| if options[k] h[v] = options.delete(k) end end end end
Removes the given header fields from options and returns the result. This modifies the given options in place.
@param [Hash] options
@return [Hash]