Class: Gem::GemcutterUtilities::WebauthnListener::SocketResponder

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/gemcutter_utilities/webauthn_listener.rb

Instance Method Summary collapse

Constructor Details

#initialize(socket) ⇒ SocketResponder

Returns a new instance of SocketResponder.



95
96
97
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 95

def initialize(socket)
  @socket = socket
end

Instance Method Details

#send(response) ⇒ Object



99
100
101
102
# File 'lib/rubygems/gemcutter_utilities/webauthn_listener.rb', line 99

def send(response)
  @socket.print response.to_s
  @socket.close
end