Class: OpenFec::Resources::IndependentExpenditures
- Defined in:
- lib/open_fec/resources/independent_expenditures.rb
Overview
Independent expenditures (Schedule E) — Super PAC and outside group spending for or against candidates.
Instance Method Summary collapse
-
#by_candidate(**params) ⇒ OpenFec::Response
Independent expenditures aggregated by candidate.
-
#each_page(**params) {|OpenFec::Response| ... } ⇒ Object
Paginate through itemized independent expenditures (seek-based).
-
#list(**params) ⇒ OpenFec::Response
List itemized independent expenditures (Schedule E).
-
#totals_by_candidate(**params) ⇒ OpenFec::Response
Totals of independent expenditures by candidate.
Methods inherited from Base
Constructor Details
This class inherits a constructor from OpenFec::Resources::Base
Instance Method Details
#by_candidate(**params) ⇒ OpenFec::Response
Independent expenditures aggregated by candidate. Shows committee_name, support/oppose indicator, total amount.
29 30 31 |
# File 'lib/open_fec/resources/independent_expenditures.rb', line 29 def by_candidate(**params) get('schedules/schedule_e/by_candidate/', params) end |
#each_page(**params) {|OpenFec::Response| ... } ⇒ Object
Paginate through itemized independent expenditures (seek-based).
45 46 47 |
# File 'lib/open_fec/resources/independent_expenditures.rb', line 45 def each_page(**params, &) client.paginate_seek('schedules/schedule_e/', params, &) end |
#list(**params) ⇒ OpenFec::Response
List itemized independent expenditures (Schedule E). Uses seek/cursor-based pagination.
20 21 22 |
# File 'lib/open_fec/resources/independent_expenditures.rb', line 20 def list(**params) get('schedules/schedule_e/', params) end |
#totals_by_candidate(**params) ⇒ OpenFec::Response
Totals of independent expenditures by candidate.
37 38 39 |
# File 'lib/open_fec/resources/independent_expenditures.rb', line 37 def totals_by_candidate(**params) get('schedules/schedule_e/totals/by_candidate/', params) end |