Class: ShelbyArena::FundReader

Inherits:
ApiReader show all
Defined in:
lib/readers/fund_reader.rb

Instance Attribute Summary

Attributes inherited from ApiReader

#headers

Instance Method Summary collapse

Methods inherited from ApiReader

#load_data

Constructor Details

#initialize(fund_id = nil) ⇒ FundReader

Constructor.

Parameters:

  • fund_id (optional) (defaults to: nil)

    The ID of the fund to load.



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