Class: Errordite::Client::Connection
- Inherits:
-
Object
- Object
- Errordite::Client::Connection
- Defined in:
- lib/errordite/client.rb
Instance Method Summary collapse
-
#initialize(server, port) ⇒ Connection
constructor
A new instance of Connection.
- #post(*args) ⇒ Object
Constructor Details
#initialize(server, port) ⇒ Connection
Returns a new instance of Connection.
34 35 36 37 38 |
# File 'lib/errordite/client.rb', line 34 def initialize(server, port) @http = Net::HTTP.new server, port @http.use_ssl = true @http.verify_mode = OpenSSL::SSL::VERIFY_PEER end |
Instance Method Details
#post(*args) ⇒ Object
40 41 42 |
# File 'lib/errordite/client.rb', line 40 def post(*args) @http.post(*args) end |