Class: Vault::Request

Inherits:
Object
  • Object
show all
Includes:
EncodePath
Defined in:
lib/vault/request.rb

Direct Known Subclasses

AppRole, AuthTLS, AuthToken, Authenticate, KV, Logical, Sys, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EncodePath

encode_path

Constructor Details

#initialize(client) ⇒ Request

Returns a new instance of Request.



8
9
10
# File 'lib/vault/request.rb', line 8

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/vault/request.rb', line 6

def client
  @client
end

Instance Method Details

#inspectString

Returns:

  • (String)


18
19
20
# File 'lib/vault/request.rb', line 18

def inspect
  "#<#{self.class.name}:0x#{"%x" % (self.object_id << 1)}>"
end

#to_sString

Returns:

  • (String)


13
14
15
# File 'lib/vault/request.rb', line 13

def to_s
  "#<#{self.class.name}>"
end