Sha256: 1f60348f38b23dcda8c2b95449d5ac8dac872adda06944dbf7eb07bd8a52d38c
Contents?: true
Size: 801 Bytes
Versions: 3
Compression:
Stored size: 801 Bytes
Contents
require 'faraday' require 'faraday/response/raise_mtgox_error' require 'faraday_middleware' require 'mtgox/version' module MtGox module Connection private def connection options = { :headers => { :accept => 'application/json', :user_agent => "mtgox gem #{MtGox::VERSION}", }, :ssl => {:verify => false}, :url => 'https://mtgox.com', } Faraday.new(options) do |connection| connection.use Faraday::Request::UrlEncoded connection.use Faraday::Response::RaiseError connection.use Faraday::Response::Rashify connection.use Faraday::Response::ParseJson connection.use Faraday::Response::RaiseMtGoxError connection.adapter(Faraday.default_adapter) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mtgox-0.4.1 | lib/mtgox/connection.rb |
mtgox-0.4.0 | lib/mtgox/connection.rb |
mtgox-0.3.1 | lib/mtgox/connection.rb |