Class: IEX::Api::Client
- Inherits:
-
Object
- Object
- IEX::Api::Client
- Includes:
- Cloud::Connection, Cloud::Request, Endpoints::AdvancedStats, Endpoints::BalanceSheet, Endpoints::CashFlow, Endpoints::Chart, Endpoints::Company, Endpoints::Crypto, Endpoints::Dividends, Endpoints::Earnings, Endpoints::FX, Endpoints::HistoricalPrices, Endpoints::Income, Endpoints::KeyStat, Endpoints::KeyStats, Endpoints::LargestTrades, Endpoints::Logo, Endpoints::News, Endpoints::Ohlc, Endpoints::Price, Endpoints::Quote, Endpoints::RefData, Endpoints::Sectors, Endpoints::StockMarket
- Defined in:
- lib/iex/api/client.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Cloud::Request
Methods included from Endpoints::StockMarket
Methods included from Endpoints::RefData
#ref_data_isin, #ref_data_symbols, #ref_data_symbols_for_exchange
Methods included from Endpoints::Sectors
Methods included from Endpoints::Quote
Methods included from Endpoints::Price
Methods included from Endpoints::Ohlc
Methods included from Endpoints::News
Methods included from Endpoints::Logo
Methods included from Endpoints::LargestTrades
Methods included from Endpoints::KeyStats
Methods included from Endpoints::KeyStat
Methods included from Endpoints::Income
Methods included from Endpoints::HistoricalPrices
Methods included from Endpoints::FX
Methods included from Endpoints::Earnings
Methods included from Endpoints::Dividends
Methods included from Endpoints::Crypto
Methods included from Endpoints::Company
Methods included from Endpoints::Chart
Methods included from Endpoints::CashFlow
Methods included from Endpoints::BalanceSheet
Methods included from Endpoints::AdvancedStats
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
37 38 39 40 41 42 43 |
# File 'lib/iex/api/client.rb', line 37 def initialize( = {}) Config::Client::ATTRIBUTES.each do |key| send("#{key}=", [key] || IEX::Api.config.send(key)) end @logger = Config::Logger.dup @logger.instance = [:logger] if .key?(:logger) end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
35 36 37 |
# File 'lib/iex/api/client.rb', line 35 def logger @logger end |