Class: IEX::Resources::KeyStats

Inherits:
IEX::Resource show all
Defined in:
lib/iex/resources/key_stats.rb

Class Method Summary collapse

Class Method Details

.get(symbol) ⇒ Object



74
75
76
77
78
# File 'lib/iex/resources/key_stats.rb', line 74

def self.get(symbol)
  new IEX::Api::KeyStats.get(symbol)
rescue Faraday::ResourceNotFound => e
  raise IEX::Errors::SymbolNotFoundError.new(symbol, e.response[:body])
end