module EventStore::HTTP::Connect::Controls::Hostname::Other

Public Class Methods

example(randomize: nil) click to toggle source
# File lib/event_store/http/connect/controls/hostname.rb, line 21
def self.example(randomize: nil)
  if randomize
    random = SecureRandom.hex 7

    "some-hostname-#{random}"
  else
    'some-hostname'
  end
end