Class: ShelbyArena::FundReader
- Defined in:
- lib/readers/fund_reader.rb
Instance Attribute Summary
Attributes inherited from ApiReader
Instance Method Summary collapse
-
#initialize(fund_id = nil) ⇒ FundReader
constructor
Constructor.
Methods inherited from ApiReader
Constructor Details
#initialize(fund_id = nil) ⇒ FundReader
Constructor.
8 9 10 11 12 13 14 15 |
# File 'lib/readers/fund_reader.rb', line 8 def initialize(fund_id = nil) if fund_id.nil? raise 'The create endpoint is not known yet.' @url_new_data_path = nil # Not sure yet else @url_data_path = "fund/#{fund_id}" end end |