Class: Fog::Connection Deprecated

Inherits:
XML::SAXParserConnection show all
Defined in:
lib/fog/core/deprecated/connection.rb

Overview

Deprecated.

Use Fog::Core::Connection or XML::SAXParserConnection if you require the response body to be parsed.

The Connection class is a wrapper around an instance of Excon::Connection supporting #request and Fog::Core::Connection#reset only.

#request includes an option to perform SAX parsing for XML APIs.

Direct Known Subclasses

IBM::Connection

Instance Method Summary collapse

Methods inherited from Fog::Core::Connection

#initialize, #reset

Constructor Details

This class inherits a constructor from Fog::Core::Connection

Instance Method Details

#request(params, &block) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/fog/core/deprecated/connection.rb', line 16

def request(params, &block)
  if (parser = params.delete(:parser))
    super(parser, params)
  else
    original_request(params)
  end
end