Sha256: c2d96b0d9935e281dc02b5b8f00ca7158ff79e870525eb098b5f3e913d97e488

Contents?: true

Size: 313 Bytes

Versions: 3

Compression:

Stored size: 313 Bytes

Contents

module IEX
  module Endpoints
    module Logo
      def logo(symbol, options = {})
        IEX::Resources::Logo.new(get("stock/#{symbol.downcase}/logo", options))
      rescue Faraday::ResourceNotFound => e
        raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iex-ruby-client-1.1.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.0.1 lib/iex/endpoints/logo.rb
iex-ruby-client-1.0.0 lib/iex/endpoints/logo.rb