Sha256: 1d8338b7696030a64067aaac024a4bcbeb959799108d673345eb129436dc8a1e

Contents?: true

Size: 236 Bytes

Versions: 9

Compression:

Stored size: 236 Bytes

Contents

module IEX
  module Api
    module Price
      def self.get(symbol)
        connection(symbol).get.body.to_f
      end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/api/price.rb
iex-ruby-client-0.4.3 lib/iex/api/price.rb
iex-ruby-client-0.4.2 lib/iex/api/price.rb
iex-ruby-client-0.4.1 lib/iex/api/price.rb
iex-ruby-client-0.4.0 lib/iex/api/price.rb
iex-ruby-client-0.3.3 lib/iex/api/price.rb
iex-ruby-client-0.3.2 lib/iex/api/price.rb
iex-ruby-client-0.3.1 lib/iex/api/price.rb
iex-ruby-client-0.3.0 lib/iex/api/price.rb