Sha256: 62035dc43c2802a07d94222421ad89c63f24ce3c3aa32da1d0445987474479fd
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module IEX module Api ROOT_URI = 'https://api.iextrading.com/1.0/stock'.freeze def self.default_connection(path) Faraday.new( url: "#{ROOT_URI}/#{path}", request: { params_encoder: Faraday::FlatParamsEncoder } ) do |c| c.use ::FaradayMiddleware::ParseJson c.use Faraday::Response::RaiseError c.use Faraday::Adapter::NetHttp end end end end require_relative 'api/quote' require_relative 'api/company'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iex-ruby-client-0.2.0 | lib/iex/api.rb |