Class: EodFacade::Fundamentals

Inherits:
Base
  • Object
show all
Defined in:
lib/eod_facade/fundamentals.rb

Class Method Summary collapse

Methods inherited from Base

make_request

Class Method Details

.call(symbol) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/eod_facade/fundamentals.rb', line 8

def call(symbol)
  response = make_request(url_path(symbol))

  unless response.success?
    raise ArgumentError, "Error fetching fundamentals data for #{symbol}"
  end

  response.parsed_response
end