Sha256: 2187683eba6c7dc1ded36b5d9255f3f2fb5a68244a8a5e2c66c9798116e39e22
Contents?: true
Size: 536 Bytes
Versions: 30
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true class ServiceClient extend Sinclair::EnvSettable attr_reader :username, :password, :host, :port settings_prefix 'SERVICE' with_settings :username, :password, port: 80, hostname: 'my-host.com' def self.default @default ||= new end def initialize( username: self.class.username, password: self.class.password, port: self.class.port, hostname: self.class.hostname ) @username = username @password = password @port = port @hostname = hostname end end
Version data entries
30 entries across 30 versions & 1 rubygems