class Schleuder::VksClient
Constants
- VKS_PATH
Public Class Methods
get(type, input)
click to toggle source
Calls superclass method
Schleuder::Http::get
# File lib/schleuder/vks_client.rb, line 6 def get(type, input) if type.to_s == 'fingerprint' input = normalize_fingerprint(input) end super(url(type, input)) end
Private Class Methods
normalize_fingerprint(input)
click to toggle source
# File lib/schleuder/vks_client.rb, line 15 def normalize_fingerprint(input) input.gsub(/^0x/, '').gsub(/\s/, '').upcase end
url(type, input)
click to toggle source
# File lib/schleuder/vks_client.rb, line 19 def url(type, input) "#{Conf.vks_keyserver}/#{VKS_PATH}/by-#{type}/#{CGI.escape(input)}" end