Sha256: 9b50837b34d06784cff1dfac7639976e0850102ed90ecaaeb17306d7164004fa

Contents?: true

Size: 347 Bytes

Versions: 9

Compression:

Stored size: 347 Bytes

Contents

module IEX
  module Api
    module News
      def self.get(symbol, range)
        connection(symbol, range).get.body
      end

      def self.connection(symbol, range)
        IEX::Api.default_connection [
          symbol,
          'news',
          range ? 'last' : nil,
          range
        ].compact.join('/')
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
iex-ruby-client-0.4.4 lib/iex/api/news.rb
iex-ruby-client-0.4.3 lib/iex/api/news.rb
iex-ruby-client-0.4.2 lib/iex/api/news.rb
iex-ruby-client-0.4.1 lib/iex/api/news.rb
iex-ruby-client-0.4.0 lib/iex/api/news.rb
iex-ruby-client-0.3.3 lib/iex/api/news.rb
iex-ruby-client-0.3.2 lib/iex/api/news.rb
iex-ruby-client-0.3.1 lib/iex/api/news.rb
iex-ruby-client-0.3.0 lib/iex/api/news.rb