Sha256: bb8712c94a407b92968dd62f1b32e9c2c2745c1486992237a3250420afc4966f

Contents?: true

Size: 347 Bytes

Versions: 1

Compression:

Stored size: 347 Bytes

Contents

module IEX
  module Api
    module Quote
      def self.get(params)
        params = params.dup
        symbol = params.delete(:q)
        connection(symbol).get do |c|
          c.params.merge!(params)
        end.body
      end

      def self.connection(symbol)
        IEX::Api.default_connection "#{symbol}/quote"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.2.0 lib/iex/api/quote.rb