Sha256: eafbdca591f252ad27fa90acb7f9e55edc6e556ca5a96f7f193345f5c5b7ef4a
Contents?: true
Size: 482 Bytes
Versions: 3
Compression:
Stored size: 482 Bytes
Contents
class <%= class_name %>::Configuration attr_accessor <%= [*initialize_signatures, :ssl, :path, :logger].map { |k| ":#{k}" }.join(', ') %> def initialize @path = '' @logger = ::Logger.new(Rails.env.development? ? $stdout : 'log/<%=file_name %>.log') end def url raise "No given host to #{self.class.name}" unless host https = ssl.presence || true "URI::HTTP#{https.to_b ? 'S' : ''}".constantize.build(host:, path: [path, version].join('/')) end end
Version data entries
3 entries across 3 versions & 1 rubygems