Sha256: e8634edf20a9adda7cf0276f7b7e35e259b1e591ef0bf7a92179f561db81658e

Contents?: true

Size: 351 Bytes

Versions: 1

Compression:

Stored size: 351 Bytes

Contents

module IEX
  module Api
    module Company
      def self.get(params)
        params = params.dup
        symbol = params.delete(:q)
        connection(symbol).get do |c|
          c.params.merge!(params)
        end.body
      end

      def self.connection(symbol)
        IEX::Api.default_connection "#{symbol}/company"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iex-ruby-client-0.2.0 lib/iex/api/company.rb