Class: FellowshipOne::ApiReader
- Inherits:
-
Object
- Object
- FellowshipOne::ApiReader
- Defined in:
- lib/readers/api_reader.rb
Overview
This adapter is the standard for all loading objects.
Direct Known Subclasses
CommunicationReader, ContributionListReader, ContributionReader, FundListReader, FundReader, HouseholdListReader, HouseholdReader, MemberHouseholdListReader, PersonListReader, PersonReader, StatusListReader, StatusReader, SubFundListReader
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#load_feed ⇒ Object
Loads the list.
-
#load_new ⇒ Object
Retrieve an empty resource with the proper structure.
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/readers/api_reader.rb', line 5 def headers @headers end |
Instance Method Details
#load_feed ⇒ Object
Loads the list
18 19 20 21 |
# File 'lib/readers/api_reader.rb', line 18 def load_feed @url_data_params ||= {} return _load_data(@url_data_path, @url_data_params) end |
#load_new ⇒ Object
Retrieve an empty resource with the proper structure.
10 11 12 13 |
# File 'lib/readers/api_reader.rb', line 10 def load_new return if @url_new_data_path.nil? return _load_data(@url_new_data_path, {}) end |