class Raven::Transports::UDP

Public Instance Methods

send_event(auth_header, data, _options = {}) click to toggle source
# File lib/raven/transports/udp.rb, line 9
def send_event(auth_header, data, _options = {})
  conn.send "#{auth_header}\n\n#{data}", 0
end

Private Instance Methods

conn() click to toggle source
# File lib/raven/transports/udp.rb, line 15
def conn
  @conn ||= begin
    sock = UDPSocket.new
    sock.connect(self.configuration.host, self.configuration.port)
    sock
  end
end
verify_configuration() click to toggle source
# File lib/raven/transports/udp.rb, line 23
def verify_configuration
  super
  raise Error.new('No port specified') unless self.configuration.port
end