Class: Vault::LeaderStatus

Inherits:
Response show all
Defined in:
lib/vault/api/sys/leader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Response

#==, decode, #initialize, #to_h

Constructor Details

This class inherits a constructor from Vault::Response

Instance Attribute Details

#addressString (readonly)

URL where the server is running.

Returns:

  • (String)


19
# File 'lib/vault/api/sys/leader.rb', line 19

field :leader_address, as: :address

Instance Method Details

#ha?Boolean

Deprecated.

Use #ha_enabled? instead

Returns:

  • (Boolean)


22
# File 'lib/vault/api/sys/leader.rb', line 22

def ha?; ha_enabled?; end

#ha_enabled?Boolean

Returns whether the high-availability mode is enabled.

Returns:

  • (Boolean)


9
# File 'lib/vault/api/sys/leader.rb', line 9

field :ha_enabled, as: :ha_enabled?

#is_leader?Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


25
# File 'lib/vault/api/sys/leader.rb', line 25

def is_leader?; leader?; end

#is_self?Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


28
# File 'lib/vault/api/sys/leader.rb', line 28

def is_self?; leader?; end

#leader?Boolean

Returns whether the Vault server queried is the leader.

Returns:

  • (Boolean)


14
# File 'lib/vault/api/sys/leader.rb', line 14

field :is_self, as: :leader?

#self?Boolean

Deprecated.

Use #leader? instead

Returns:

  • (Boolean)


31
# File 'lib/vault/api/sys/leader.rb', line 31

def self?; leader?; end