Module: EventStore::HTTP::Connect::Controls::Settings
- Defined in:
- lib/event_store/http/connect/controls/settings.rb
Class Method Summary collapse
Class Method Details
.example(host: nil, namespace: nil, **attributes) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/event_store/http/connect/controls/settings.rb', line 6 def self.example(host: nil, namespace: nil, **attributes) host ||= IPAddress.example namespace = Array(namespace) attributes[:host] = host data_source = namespace.reduce attributes do |hash, namespace| { namespace => hash } end EventStore::HTTP::Connect::Settings.build data_source end |