Sha256: 569b7d99268e7a0c3ae9944d1de795ae0b58baca4c93e40a3ce909af2dd14d58

Contents?: true

Size: 349 Bytes

Versions: 10

Compression:

Stored size: 349 Bytes

Contents

module IEX
  module Endpoints
    module Logo
      def logo(symbol, options = {})
        IEX::Resources::Logo.new(get("stock/#{symbol.downcase}/logo", { 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/logo.rb
iex-ruby-client-2.0.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.6.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.5.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.4.1 lib/iex/endpoints/logo.rb
iex-ruby-client-1.4.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.3.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.2.0 lib/iex/endpoints/logo.rb
iex-ruby-client-1.1.2 lib/iex/endpoints/logo.rb
iex-ruby-client-1.1.1 lib/iex/endpoints/logo.rb