Class: IEX::Api::Client

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Cloud::Request

#delete, #get, #post, #put

Methods included from Endpoints::StockMarket

#stock_market_list

Methods included from Endpoints::RefData

#ref_data_isin, #ref_data_symbols

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::Income

#income

Methods included from Endpoints::HistoricalPrices

#historical_prices

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

Methods included from Endpoints::CashFlow

#cash_flow

Methods included from Endpoints::BalanceSheet

#balance_sheet

Methods included from Endpoints::AdvancedStats

#advanced_stats

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.


35
36
37
38
39
40
41
# File 'lib/iex/api/client.rb', line 35

def initialize(options = {})
  Config::Client::ATTRIBUTES.each do |key|
    send("#{key}=", options[key] || IEX::Api.config.send(key))
  end
  @logger = Config::Logger.dup
  @logger.instance = options[:logger] if options.key?(:logger)
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger


33
34
35
# File 'lib/iex/api/client.rb', line 33

def logger
  @logger
end