Class HoptoadNotifier::Sender
In: lib/hoptoad_notifier/sender.rb
Parent: Object

Sends out the notice to Hoptoad

Methods

Constants

NOTICES_URI = '/notifier_api/v2/notices/'.freeze
HTTP_ERRORS = [Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError, Errno::ECONNREFUSED].freeze

Attributes

host  [R] 
http_open_timeout  [R] 
http_read_timeout  [R] 
port  [R] 
protocol  [R] 
proxy_host  [R] 
proxy_pass  [R] 
proxy_port  [R] 
proxy_user  [R] 
secure  [R] 

Public Class methods

Public Instance methods

Sends the notice data off to Hoptoad for processing.

@param [String] data The XML notice to be sent off

[Validate]