Sha256: a2596799c1e7bd96e1fbc33e7a7757630fcc77c716a85bb3567e38d3aa3dfc48

Contents?: true

Size: 294 Bytes

Versions: 1

Compression:

Stored size: 294 Bytes

Contents

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

      def self.connection(symbol)
        IEX::Api.default_connection [
          symbol,
          'sector-performance'
        ].compact.join('/')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/api/sectors.rb