module EventStore::Cluster::LeaderStatus::GossipEndpoint::Get::LogAttributes

Public Class Methods

get(get_instance, host: nil) click to toggle source
# File lib/event_store/cluster/leader_status/gossip_endpoint/get.rb, line 77
def self.get(get_instance, host: nil)
  host_setting = get_instance.connect_http.host

  if host.nil?
    host_text = host_setting
  else
    host_text = "#{host} [Overriding setting: [#{host_setting}]]"
  end

  get_instance.instance_exec do
    "Host: #{host_text}"
  end
end