class Raven::Transports::UDP
Public Instance Methods
send(auth_header, data, options = {})
click to toggle source
# File lib/raven/transports/udp.rb, line 10 def send(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 16 def conn @conn ||= begin sock = UDPSocket.new sock.connect(self.configuration.host, self.configuration.port) sock end end
verify_configuration()
click to toggle source
Calls superclass method
Raven::Transports::Transport#verify_configuration
# File lib/raven/transports/udp.rb, line 24 def verify_configuration super raise Error.new('No port specified') unless self.configuration.port end