Module: Cmecloud::Connection
- Included in:
- Cmecloud
- Defined in:
- lib/cmecloud.rb
Instance Method Summary collapse
Instance Method Details
#connection ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/cmecloud.rb', line 16 def connection @connection ||= Faraday.new('http://ws.cmedatacloud.com/v1/') do |conn| conn.request :url_encoded conn.response :mashify conn.response :xml, :content_type => /\bxml$/ conn.adapter Faraday.default_adapter end end |