Module: IEX::Api::Quote

Defined in:
lib/iex/api/quote.rb

Class Method Summary collapse

Class Method Details

.connection(symbol) ⇒ Object


8
9
10
# File 'lib/iex/api/quote.rb', line 8

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

.get(symbol) ⇒ Object


4
5
6
# File 'lib/iex/api/quote.rb', line 4

def self.get(symbol)
  connection(symbol).get.body
end