Sha256: f3fbe8b588b892f37ae754b8043ada7e905d524969056a413d9c89eed958ea77

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module Zvents
    def self.connection
        @connection ||= Faraday.new(url: 'http://www.zvents.com/') do |faraday|
            faraday.request  :url_encoded             # form-encode POST params
            faraday.response :logger                  # log requests to STDOUT
            faraday.adapter  Faraday.default_adapter  # make requests with Net::HTTP
            faraday.response :json
        end        
    end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zvents-0.1.1 lib/zvents/connection.rb
zvents-0.1.0 lib/zvents/connection.rb