Sha256: 0dc03b09a5ac8bbaffc2287b854f47e974de382f536fd62d2361277172675ba8

Contents?: true

Size: 260 Bytes

Versions: 4

Compression:

Stored size: 260 Bytes

Contents

module IEX
  module Resources
    module Price
      def self.get(symbol)
        IEX::Api::Price.get(symbol)
      rescue Faraday::ResourceNotFound => e
        raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
iex-ruby-client-0.3.3 lib/iex/resources/price.rb
iex-ruby-client-0.3.2 lib/iex/resources/price.rb
iex-ruby-client-0.3.1 lib/iex/resources/price.rb
iex-ruby-client-0.3.0 lib/iex/resources/price.rb