Class: PostageApp::Diagnostics

Inherits:
Object
  • Object
show all
Defined in:
lib/postageapp/diagnostics.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Diagnostics

Instance Methods =====================================================



6
7
8
# File 'lib/postageapp/diagnostics.rb', line 6

def initialize(config)
  @config = config
end

Instance Method Details

#host_resolvedObject



14
15
16
# File 'lib/postageapp/diagnostics.rb', line 14

def host_resolved
  resolve(@config.host, @config.protocol)
end

#proxy_host_resolvedObject



10
11
12
# File 'lib/postageapp/diagnostics.rb', line 10

def proxy_host_resolved
  resolve(@config.proxy_host, 'socks5')
end