Module: EventStore::HTTP::Connect::Controls::Hostname::Other

Defined in:
lib/event_store/http/connect/controls/hostname.rb

Class Method Summary collapse

Class Method Details

.example(randomize: nil) ⇒ Object



21
22
23
24
25
26
27
28
29
# 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