Class: IEX::Api::Client

Constant Summary

Constants included from Config

IEX::Api::Config::ATTRIBUTES

Instance Method Summary collapse

Methods included from Config

#reset!

Methods included from Cloud::Request

#delete, #get, #post, #put

Methods included from Endpoints::Sectors

#sectors

Methods included from Endpoints::Quote

#quote

Methods included from Endpoints::Price

#price

Methods included from Endpoints::Ohlc

#market, #ohlc

Methods included from Endpoints::News

#news

Methods included from Endpoints::Logo

#logo

Methods included from Endpoints::LargestTrades

#largest_trades

Methods included from Endpoints::KeyStats

#key_stats

Methods included from Endpoints::Earnings

#earnings

Methods included from Endpoints::Dividends

#dividends

Methods included from Endpoints::Crypto

#crypto

Methods included from Endpoints::Company

#company

Methods included from Endpoints::Chart

#chart

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



23
24
25
26
27
# File 'lib/iex/api/client.rb', line 23

def initialize(options = {})
  Config::ATTRIBUTES.each do |key|
    send("#{key}=", options[key] || IEX::Api.config.send(key))
  end
end