Sha256: 08cd6bb8d055720821cc158cc57079fc460528ca3abea9d770affc16585a5038

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

require 'faraday_middleware'
require 'faraday/response/parse_error'

module DirectEmployers
  module Connection
    private

    def connection
      Faraday.new(:url => 'http://www.jobcentral.com') do |connection|
        connection.use Faraday::Request::UrlEncoded
        connection.use Faraday::Response::RaiseError
        connection.use Faraday::Response::Rashify
        connection.use Faraday::Response::ParseXml
        connection.use Faraday::Response::ParseError
        connection.adapter(Faraday.default_adapter)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
direct_employers-0.0.2 lib/direct_employers/connection.rb