Module: IEX::Api::Dividends
- Defined in:
- lib/iex/api/dividends.rb
Class Method Summary collapse
Class Method Details
.connection(symbol, range = nil) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/iex/api/dividends.rb', line 8 def self.connection(symbol, range = nil) IEX::Api.default_connection [ symbol, 'dividends', range ? '6m' : nil, range ].compact.join('/') end |
.get(symbol, range = nil) ⇒ Object
4 5 6 |
# File 'lib/iex/api/dividends.rb', line 4 def self.get(symbol, range = nil) connection(symbol, range).get.body end |