Sha256: 6de27de3c6a5f7008f73f026ff6f1d3c06bc461219f639c3f5b67239807969ea

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

module IEX
  module Endpoints
    module Crypto
      def crypto(symbol, options = {})
        IEX::Resources::Crypto.new(get("crypto/#{symbol}/quote", { token: publishable_token }.merge(options)))
      rescue Faraday::ResourceNotFound => e
        raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iex-ruby-client-2.1.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-2.0.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.6.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.5.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.4.1 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.4.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.3.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.2.0 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.1.2 lib/iex/endpoints/crypto.rb
iex-ruby-client-1.1.1 lib/iex/endpoints/crypto.rb