Class: Vault::Request

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

Direct Known Subclasses

AppRole, AuthTLS, AuthToken, Authenticate, Logical, Sys

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.



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

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



3
4
5
# File 'lib/vault/request.rb', line 3

def client
  @client
end

Instance Method Details

#inspectString

Returns:

  • (String)


15
16
17
# File 'lib/vault/request.rb', line 15

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

#to_sString

Returns:

  • (String)


10
11
12
# File 'lib/vault/request.rb', line 10

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