spec/support/models/my_server_config.rb in sinclair-1.3.4 vs spec/support/models/my_server_config.rb in sinclair-1.4.0
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
-class MyServerConfig
+class MyServerConfig < Sinclair::Config
+ config_attributes :host, :port
+
def url
if @port
"http://#{@host}:#{@port}"
else
"http://#{@host}"